From c85628fa6776c484fadb00e734a61641529e626e Mon Sep 17 00:00:00 2001 From: houssine Date: Tue, 16 Jan 2018 11:11:39 +0100 Subject: [PATCH] [IMP] move vals out of the if --- 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 fd9cc13..8723752 100644 --- a/easy_my_coop/wizard/create_subscription_from_partner.py +++ b/easy_my_coop/wizard/create_subscription_from_partner.py @@ -122,7 +122,7 @@ class PartnerCreateSubscription(models.TransientModel): partner_bank = self.env['res.partner.bank'] partner_bank.create({'partner_id':cooperator.id, 'acc_number':self.bank_account}) - vals['iban'] = self.bank_account + vals['iban'] = self.bank_account if coop_vals: cooperator.write(coop_vals)