From f3ef3af107e0ba42359e55db266493c8ed55b027 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Mon, 17 Oct 2011 12:01:59 +0200 Subject: [PATCH] [FIX] account_voucher: fixed error in args of _get_exchange_lines() bzr revid: qdp-launchpad@openerp.com-20111017100159-aqmm71eb2r9cgx1h --- addons/account_voucher/account_voucher.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index ae53592c37a..38af59009d8 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -867,8 +867,7 @@ class account_voucher(osv.osv): if amount_residual: # Change difference entry - exch_lines = self._get_exchange_lines(cr, uid, line, move_id, - amount_residual ,context) + exch_lines = self._get_exchange_lines(cr, uid, line, move_id, amount_residual, company_currency, current_currency, context=context) new_id = move_line_obj.create(cr, uid, exch_lines[0],context) move_line_obj.create(cr, uid, exch_lines[1], context) rec_ids.append(new_id)