diff --git a/easy_my_coop/wizard/create_subscription_from_partner.py b/easy_my_coop/wizard/create_subscription_from_partner.py index 72ae484..faf922d 100644 --- a/easy_my_coop/wizard/create_subscription_from_partner.py +++ b/easy_my_coop/wizard/create_subscription_from_partner.py @@ -177,7 +177,10 @@ class PartnerCreateSubscription(models.TransientModel): partner_bank.create({'partner_id':cooperator.id, 'acc_number':self.bank_account}) vals['iban'] = self.bank_account - + if self.is_company: + representative = self._get_representative() + vals['name'] = representative.name + if coop_vals: cooperator.write(coop_vals)