From 0502ea62ab46cad09334e6940b703c2f2d35b688 Mon Sep 17 00:00:00 2001 From: houssine Date: Sat, 24 Mar 2018 19:18:39 +0100 Subject: [PATCH] [FIX] fix wrong field name --- 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 f098c31..8349c27 100644 --- a/easy_my_coop/wizard/create_subscription_from_partner.py +++ b/easy_my_coop/wizard/create_subscription_from_partner.py @@ -180,7 +180,7 @@ class PartnerCreateSubscription(models.TransientModel): if self.is_company: representative = self._get_representative() vals['name'] = representative.name - vals['no_registre'] = representative.register_number + vals['no_registre'] = representative.national_register_number if coop_vals: cooperator.write(coop_vals)