Browse Source

[FIX] fill the mandatory name field when the it's a company subscription

pull/1/head
houssine 7 years ago
parent
commit
6919491b02
  1. 1
      easy_my_coop/wizard/create_subscription_from_partner.py

1
easy_my_coop/wizard/create_subscription_from_partner.py

@ -83,6 +83,7 @@ class PartnerCreateSubscription(models.TransientModel):
if self.is_company: if self.is_company:
vals['company_name'] = self.cooperator.name vals['company_name'] = self.cooperator.name
vals['name'] = '/'
vals['company_register_number'] = self.register_number vals['company_register_number'] = self.register_number
vals['is_company'] = True vals['is_company'] = True
else: else:

Loading…
Cancel
Save