[FIX] account: force account.financial.report balance of *zero* to be displayed posit...
authorXavier ALT <xal@openerp.com>
Tue, 9 Oct 2012 09:47:28 +0000 (11:47 +0200)
committerXavier ALT <xal@openerp.com>
Tue, 9 Oct 2012 09:47:28 +0000 (11:47 +0200)
bzr revid: xal@openerp.com-20121009094728-61p8ul1dsgp1wqqa

addons/account/report/account_financial_report.py

index 4126964..4690c86 100644 (file)
@@ -56,7 +56,7 @@ class report_account_common(report_sxw.rml_parse, common_report_header):
         for report in self.pool.get('account.financial.report').browse(self.cr, self.uid, ids2, context=data['form']['used_context']):
             vals = {
                 'name': report.name,
-                'balance': report.balance != 0 and report.balance * report.sign or report.balance,
+                'balance': report.balance * report.sign or 0.0,
                 'type': 'report',
                 'level': bool(report.style_overwrite) and report.style_overwrite or report.level,
                 'account_type': report.type =='sum' and 'view' or False, #used to underline the financial report balances