[FIX] stock: use correct accounts when testing for multi-currency Journal Entries
bzr revid: odo@openerp.com-20100916152753-2y93oewqqd3zkmhu
This commit is contained in:
parent
f46520efa9
commit
fc1a40a1ee
|
@ -2064,7 +2064,7 @@ class stock_move(osv.osv):
|
|||
if reference_currency_id != dest_main_currency_id:
|
||||
# fix debit line:
|
||||
debit_line_vals['debit'] = cur_obj.compute(cr, uid, reference_currency_id, dest_main_currency_id, reference_amount, context=context)
|
||||
if (not src_acct.currency_id) or src_acct.currency_id.id == reference_currency_id:
|
||||
if (not dest_acct.currency_id) or dest_acct.currency_id.id == reference_currency_id:
|
||||
debit_line_vals.update(currency_id=reference_currency_id, amount_currency=reference_amount)
|
||||
|
||||
return [(0, 0, debit_line_vals), (0, 0, credit_line_vals)]
|
||||
|
|
Loading…
Reference in New Issue