From fee10ac1fda5215715890e0f55ff5053ec19022d Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Wed, 8 Jan 2014 17:07:19 +0100 Subject: [PATCH] [FIX] account_voucher: default value for float field is 0.0, not False. (That doesn't change the behavior but makes things more clear) bzr revid: qdp-launchpad@openerp.com-20140108160719-9i8xhrat49cn9l5e --- addons/account_voucher/account_voucher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index e4aa535083c..7e7cd9d6507 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -1343,7 +1343,7 @@ class account_voucher(osv.osv): 'date': voucher.date, 'credit': diff > 0 and diff or 0.0, 'debit': diff < 0 and -diff or 0.0, - 'amount_currency': company_currency <> current_currency and (sign * -1 * voucher.writeoff_amount) or False, + 'amount_currency': company_currency <> current_currency and (sign * -1 * voucher.writeoff_amount) or 0.0, 'currency_id': company_currency <> current_currency and current_currency or False, 'analytic_account_id': voucher.analytic_id and voucher.analytic_id.id or False, }