From 84872f59c8bb709f518e83b3de08d4f35e7a218c Mon Sep 17 00:00:00 2001 From: "Turkesh Patel (Open ERP)" Date: Mon, 9 Sep 2013 12:29:30 +0530 Subject: [PATCH] [IMP] improved code bzr revid: tpa@tinyerp.com-20130909065930-u9btuxnl7ot19fuo --- addons/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account.py b/addons/account/account.py index 2954d0fc1d7..e5af2c9bdc5 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -3081,7 +3081,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): #set currecy_id based on selected COA template using ir.vaalues else current users company's currency value_id = ir_values.search(cr, uid, [('model', '=', 'account.chart.template'), ('res_id', '=', chart_template_id)], limit=1, context=context) if value_id: - currency_id = int(ir_values.browse(cr, uid, val_id[0], context=context).value) + currency_id = int(ir_values.browse(cr, uid, value_id[0], context=context).value) else: currency_id = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.currency_id.id res['value'].update({'complete_tax_set': data.complete_tax_set, 'currency_id': currency_id})