Browse Source

[FIX] add is_company to True to the vals if it's a company

pull/1/head
houssine 7 years ago
parent
commit
442dc3cd8f
  1. 1
      easy_my_coop/wizard/create_subscription_from_partner.py

1
easy_my_coop/wizard/create_subscription_from_partner.py

@ -82,6 +82,7 @@ class PartnerCreateSubscription(models.TransientModel):
'user_id':self.env.uid} 'user_id':self.env.uid}
if self.is_company: if self.is_company:
vals['company_register_number'] = self.register_number vals['company_register_number'] = self.register_number
vals['is_company'] = True
else: else:
vals['no_registre'] = self.register_number vals['no_registre'] = self.register_number

Loading…
Cancel
Save