From 082fce194baa704029958fd92440beb160f6db69 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Thu, 26 Aug 2010 11:44:13 +0530 Subject: [PATCH] [FIX] Bank statements: Cursor is not defined for multicurrency popolate bzr revid: mra@mra-laptop-20100826061413-9h0ruazoweahi612 --- addons/account/wizard/account_statement_from_invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/wizard/account_statement_from_invoice.py b/addons/account/wizard/account_statement_from_invoice.py index ab17a7f4a22..87bd8ccb315 100644 --- a/addons/account/wizard/account_statement_from_invoice.py +++ b/addons/account/wizard/account_statement_from_invoice.py @@ -64,10 +64,10 @@ class account_statement_from_invoice_lines(osv.osv_memory): amount = -line.credit if line.amount_currency: - amount = currency_obj.compute(cursor, user, line.currency_id.id, + amount = currency_obj.compute(cr, user, line.currency_id.id, statement.currency.id, line.amount_currency, context=ctx) elif (line.invoice and line.invoice.currency_id.id <> statement.currency.id): - amount = currency_obj.compute(cursor, user, line.invoice.currency_id.id, + amount = currency_obj.compute(cr, user, line.invoice.currency_id.id, statement.currency.id, amount, context=ctx) reconcile_id = statement_reconcile_obj.create(cr, uid, {