[FIX] account: Financial Reports prints balance as -0.0 instead of 0.0 for report entries configured as 'Reverse balance sign' in case balance equals to 0.00: (Maintenance Case : 575716)

bzr revid: rgo@tinyerp.com-20120612062237-ncvgufr6hcqvauf8
This commit is contained in:
Luc De Meyer
2012-06-12 11:52:37 +05:30
committed by Ravi Gohil (Open ERP)
parent ef7c1ab249
commit 9e999d9bfd
@@ -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 != 0 and report.balance * report.sign or report.balance,
'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