[IMP] account : defined context above for loop in invoice.py

bzr revid: bde@tinyerp.com-20110913131102-qrkb4b8dhkjmxgsa
This commit is contained in:
Bharat (OpenERP)
2011-09-13 18:41:02 +05:30
parent 382ffceb34
commit 055318610e
+2 -2
View File
@@ -860,9 +860,9 @@ class account_invoice(osv.osv):
if totlines:
res_amount_currency = total_currency
i = 0
ctx = context.copy()
ctx.update({'date':inv.date_invoice})
for t in totlines:
ctx = context.copy()
ctx.update({'date':inv.date_invoice})
if inv.currency_id.id != company_currency:
amount_currency = cur_obj.compute(cr, uid, company_currency, inv.currency_id.id, t[1], context=ctx)
else: