From 5f3e8cf3d9a693fe331ddd7441a9ffc73f9180d2 Mon Sep 17 00:00:00 2001 From: "Ronald Portier (Therp BV)" Date: Fri, 6 Feb 2015 00:35:03 +0100 Subject: [PATCH] [FIX] Error with duplicate key currency_id in dict. --- account_bank_statement_import/account_bank_statement_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_bank_statement_import/account_bank_statement_import.py b/account_bank_statement_import/account_bank_statement_import.py index 358901e..7b7b6a2 100644 --- a/account_bank_statement_import/account_bank_statement_import.py +++ b/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)