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: