Browse Source

[FIX] set vals to the field acc_number instead of the res.partner.bank

object
pull/1/head
houssine 7 years ago
parent
commit
255e27916b
  1. 2
      easy_my_coop/wizard/create_subscription_from_partner.py

2
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.acc_number
if coop_vals:
cooperator.write(coop_vals)

Loading…
Cancel
Save