Browse Source

[FIX] easy_my_coop: _compute_representative_of_member_company depends on parent_id.member

pull/139/head
Manuel Claeys Bouuaert 4 years ago
parent
commit
e73a882657
  1. 2
      easy_my_coop/models/partner.py

2
easy_my_coop/models/partner.py

@ -178,7 +178,7 @@ class ResPartner(models.Model):
partner.coop_candidate = is_candidate
@api.multi
@api.depends("parent_id", "representative")
@api.depends("parent_id", "parent_id.member", "representative")
def _compute_representative_of_member_company(self):
for partner in self:
member_companies = self.env["res.partner"].search(

Loading…
Cancel
Save