[FIX] account: force account.financial.report balance of *zero* to be displayed positively: (Maintenance Case: 583915)

bzr revid: rgo@tinyerp.com-20130107102857-hor2hzsmimjttcus
This commit is contained in:
Ravi Gohil (OpenERP) 2013-01-07 15:58:57 +05:30
parent 59baa1faf6
commit a475013fd8
1 changed files with 1 additions and 1 deletions

View 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 * report.sign,
'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