From bd79b7d37456efd98c868b38352e56c536917413 Mon Sep 17 00:00:00 2001 From: houssine Date: Fri, 2 Feb 2018 19:22:28 +0100 Subject: [PATCH] [FIX] check is company on res.partner instead of self --- easy_my_coop/wizard/update_partner_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy_my_coop/wizard/update_partner_info.py b/easy_my_coop/wizard/update_partner_info.py index 1285e9e..dce4516 100644 --- a/easy_my_coop/wizard/update_partner_info.py +++ b/easy_my_coop/wizard/update_partner_info.py @@ -35,7 +35,7 @@ class PartnerUpdateInfo(models.TransientModel): cooperator = self.cooperator coop_vals = {} - if self.is_company: + if cooperator.is_company: coop_vals['company_register_number'] = self.register_number else: if self.check_belgian_ident_id(self.register_number):