From 6c7c712235908a7dbcc6e0d5face08ca4d106325 Mon Sep 17 00:00:00 2001 From: "qdp-launchpad@tinyerp.com" <> Date: Thu, 13 Jan 2011 17:57:26 +0100 Subject: [PATCH] [FIX] account: is_zero function of res.currency obj was not used in the correct way bzr revid: qdp-launchpad@tinyerp.com-20110113165726-s2a377wrk8jdxrjr --- addons/account/report/account_general_ledger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/report/account_general_ledger.py b/addons/account/report/account_general_ledger.py index 53f85dd4860..1047b9017d6 100755 --- a/addons/account/report/account_general_ledger.py +++ b/addons/account/report/account_general_ledger.py @@ -121,7 +121,7 @@ class general_ledger(report_sxw.rml_parse, common_report_header): res.append(child_account) elif self.display_account == 'bal_solde': if child_account.type != 'view' and num_entry <> 0: - if currency_obj.is_zero(self.cr, self.uid, currency, sold_account) != 0: + if not currency_obj.is_zero(self.cr, self.uid, currency, sold_account): res.append(child_account) else: res.append(child_account)