From 571f22333341e741602261be6a8fa38795bf4d43 Mon Sep 17 00:00:00 2001 From: Manuel Claeys Bouuaert Date: Thu, 26 Mar 2020 15:46:17 +0100 Subject: [PATCH] [FIX] emc: cooperator_type depends --- easy_my_coop/models/partner.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/easy_my_coop/models/partner.py b/easy_my_coop/models/partner.py index dd7dea8..10fc653 100644 --- a/easy_my_coop/models/partner.py +++ b/easy_my_coop/models/partner.py @@ -79,7 +79,9 @@ class ResPartner(models.Model): return [('', '')] + share_types @api.multi - @api.depends('share_ids') + @api.depends('share_ids', 'share_ids.share_product_id', + 'share_ids.share_product_id.default_code', + 'share_ids.share_number') def _compute_cooperator_type(self): for partner in self: share_type = ''