From 442dc3cd8f88529520b73a33687ffb9b155611f6 Mon Sep 17 00:00:00 2001 From: houssine Date: Fri, 15 Dec 2017 22:58:03 +0100 Subject: [PATCH] [FIX] add is_company to True to the vals if it's a company --- easy_my_coop/wizard/create_subscription_from_partner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/easy_my_coop/wizard/create_subscription_from_partner.py b/easy_my_coop/wizard/create_subscription_from_partner.py index 6897945..2d36e67 100644 --- a/easy_my_coop/wizard/create_subscription_from_partner.py +++ b/easy_my_coop/wizard/create_subscription_from_partner.py @@ -82,6 +82,7 @@ class PartnerCreateSubscription(models.TransientModel): 'user_id':self.env.uid} if self.is_company: vals['company_register_number'] = self.register_number + vals['is_company'] = True else: vals['no_registre'] = self.register_number