[FIX] Account: Action move create remove ctx as it is already defined

bzr revid: mra@tinyerp.com-20110914045121-skvymznk4ikxg7j0
This commit is contained in:
Mustufa Rangwala (OpenERP)
2011-09-14 10:21:21 +05:30
parent 055318610e
commit 9ae0f3a293
+1 -2
View File
@@ -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)