Browse Source

[FIX] Error with duplicate key currency_id in dict.

pull/6/head^2
Ronald Portier (Therp BV) 10 years ago
parent
commit
5f3e8cf3d9
  1. 2
      account_bank_statement_import/account_bank_statement_import.py

2
account_bank_statement_import/account_bank_statement_import.py

@ -174,7 +174,7 @@ class account_bank_statement_import(osv.TransientModel):
wmca_pool = self.pool.get('wizard.multi.charts.accounts')
company = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id
vals_account = {'currency_id': currency_id, 'acc_name': account_number, 'account_type': 'bank', 'currency_id': currency_id}
vals_account = {'currency_id': currency_id, 'acc_name': account_number, 'account_type': 'bank'}
vals_account = wmca_pool._prepare_bank_account(cr, uid, company, vals_account, context=context)
account_id = self.pool.get('account.account').create(cr, uid, vals_account, context=context)

Loading…
Cancel
Save