From 80f6d8f90d1f46967c28c2bf86676ab01d0202e1 Mon Sep 17 00:00:00 2001 From: "robin.keunen" Date: Wed, 4 Dec 2019 16:42:20 +0100 Subject: [PATCH] [FIX] emc: _compute_cooperator_type returns id --- 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 4ef8f65..af0569b 100644 --- a/easy_my_coop/models/partner.py +++ b/easy_my_coop/models/partner.py @@ -75,7 +75,7 @@ class ResPartner(models.Model): for partner in self: share_type = '' for line in partner.share_ids: - share_type = line.share_product_id.default_code + share_type = line.share_product_id.id if share_type: partner.cooperator_type = share_type