From e73a882657cc2e309adf9d9ae5cb90a33b958cc0 Mon Sep 17 00:00:00 2001 From: Manuel Claeys Bouuaert Date: Tue, 1 Dec 2020 17:53:58 +0100 Subject: [PATCH] [FIX] easy_my_coop: _compute_representative_of_member_company depends on parent_id.member --- easy_my_coop/models/partner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy_my_coop/models/partner.py b/easy_my_coop/models/partner.py index bc6f5ae..3874189 100644 --- a/easy_my_coop/models/partner.py +++ b/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(