From 81ac1302f699eabb6c8ce304ef2b32e6271a3a42 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Wed, 8 Jan 2014 17:04:44 +0100 Subject: [PATCH] [FIX] account: amount in secondary currency shouldn't be recomputed if 0 is given as value bzr revid: qdp-launchpad@openerp.com-20140108160444-v2noeye7ftl32jgi --- addons/account/account_move_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 69a62c9d5de..3e40840ff88 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -1202,7 +1202,7 @@ class account_move_line(osv.osv): break # Automatically convert in the account's secondary currency if there is one and # the provided values were not already multi-currency - if account.currency_id and (vals.get('amount_currency', False) is False) and account.currency_id.id != account.company_id.currency_id.id: + if account.currency_id and 'amount_currency' not in vals and account.currency_id.id != account.company_id.currency_id.id: vals['currency_id'] = account.currency_id.id ctx = {} if 'date' in vals: