[FIX] account: is_zero function of res.currency obj was not used in the correct way

bzr revid: qdp-launchpad@tinyerp.com-20110113165726-s2a377wrk8jdxrjr
This commit is contained in:
qdp-launchpad@tinyerp.com 2011-01-13 17:57:26 +01:00
parent 02d6d22d49
commit 6c7c712235
1 changed files with 1 additions and 1 deletions

View File

@ -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)