From b70b4f558ab0b5b7a51ae8b4d1843d4ca69a6f3d Mon Sep 17 00:00:00 2001 From: houssine Date: Mon, 30 Sep 2019 10:38:38 +0200 Subject: [PATCH] [IMP] replace multi by model as we don't work with self --- 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 751367a..249f0f2 100644 --- a/easy_my_coop/models/partner.py +++ b/easy_my_coop/models/partner.py @@ -59,7 +59,7 @@ class ResPartner(models.Model): for partner, child_ids in all_partners_and_children.items(): partner.total_invoiced = sum(price['total'] for price in price_totals if price['partner_id'] in child_ids) - @api.multi + @api.model def _get_share_type(self): product_obj = self.env['product.product'] share_type_list = [('', '')]