Skip to content

Commit

Permalink
Fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordack committed Sep 27, 2024
1 parent 4627633 commit e2dc804
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions survival_sponsorship_compassion/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@
# The licence is in the file __manifest__.py
#
##############################################################################
import functools
import random
import string

from odoo import _, api, fields, models
from odoo import models

class ResPartner(models.Model):
_inherit = ["res.partner", "compassion.mapped.model"]
Expand All @@ -23,14 +20,13 @@ def _compute_related_contracts(self):
for partner in self:
print(partner.contracts_correspondant)
partner.contracts_correspondant = (
contract_obj.search(
[
("correspondent_id", "=", partner.id),
("type", "in", ["CSP", "S", "SC", "SWP"]),
("fully_managed", "=", False),
],
order="start_date desc",
).ids
or False
)
print(partner.contracts_correspondant)
contract_obj.search(
[
("correspondent_id", "=", partner.id),
("type", "in", ["CSP", "S", "SC", "SWP"]),
("fully_managed", "=", False),
],
order="start_date desc",
).ids
or False
)

0 comments on commit e2dc804

Please sign in to comment.