From f6a608dbdba10e62bf920dece12266edd11185cf Mon Sep 17 00:00:00 2001 From: houssine Date: Fri, 15 Dec 2017 12:51:09 +0100 Subject: [PATCH] [FIX] fix the case where two share type has been flaged as default. Return the first one --- easy_my_coop/wizard/create_subscription_from_partner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy_my_coop/wizard/create_subscription_from_partner.py b/easy_my_coop/wizard/create_subscription_from_partner.py index aecf8c9..6897945 100644 --- a/easy_my_coop/wizard/create_subscription_from_partner.py +++ b/easy_my_coop/wizard/create_subscription_from_partner.py @@ -26,7 +26,7 @@ class PartnerCreateSubscription(models.TransientModel): else: domain.append(('by_individual','=',True)) - return self.env['product.product'].search(domain) + return self.env['product.product'].search(domain)[0] @api.model def _get_partner(self):