[FIX] account_voucher: fixed error in args of _get_exchange_lines()

bzr revid: qdp-launchpad@openerp.com-20111017100159-aqmm71eb2r9cgx1h
This commit is contained in:
Quentin (OpenERP)
2011-10-17 12:01:59 +02:00
parent 65ea032c1e
commit f3ef3af107
+1 -2
View File
@@ -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)