From 9ae0f3a2933cdfbb6fce4d1dc6089b93412d9ac0 Mon Sep 17 00:00:00 2001 From: "Mustufa Rangwala (OpenERP)" Date: Wed, 14 Sep 2011 10:21:21 +0530 Subject: [PATCH] [FIX] Account: Action move create remove ctx as it is already defined bzr revid: mra@tinyerp.com-20110914045121-skvymznk4ikxg7j0 --- addons/account/invoice.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index efbf3605059..44aea3466e6 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -860,8 +860,7 @@ class account_invoice(osv.osv): if totlines: res_amount_currency = total_currency i = 0 - ctx = context.copy() - ctx.update({'date':inv.date_invoice}) + ctx.update({'date': inv.date_invoice}) for t in totlines: if inv.currency_id.id != company_currency: amount_currency = cur_obj.compute(cr, uid, company_currency, inv.currency_id.id, t[1], context=ctx)