From 58f7dceab9fb3de5803519a9d63dddaf147ae7d3 Mon Sep 17 00:00:00 2001 From: vra Date: Fri, 22 Oct 2010 18:21:43 +0530 Subject: [PATCH] [FIX] account: Fixed the Balance sheet report problem for blank chart. bzr revid: vra@tinyerp.com-20101022125143-ze6shi5hqf0fld0n --- addons/account/report/account_balance_sheet.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/account/report/account_balance_sheet.py b/addons/account/report/account_balance_sheet.py index 6743cf4a7ac..8655c458724 100644 --- a/addons/account/report/account_balance_sheet.py +++ b/addons/account/report/account_balance_sheet.py @@ -104,6 +104,10 @@ class report_balancesheet_horizontal(rml_parse.rml_parse, common_report_header): account_ids = account_pool._get_children_and_consol(cr, uid, account_id, context=ctx) accounts = account_pool.browse(cr, uid, account_ids, context=ctx) + if not self.res_bl: + self.res_bl['type'] = 'Net Profit' + self.res_bl['balance'] = 0.0 + if self.res_bl['type'] == 'Net Profit': self.res_bl['type'] = 'Net Profit' else: