[FIX] account: Fixed the Balance sheet report problem for blank chart.

bzr revid: vra@tinyerp.com-20101022125143-ze6shi5hqf0fld0n
This commit is contained in:
vra 2010-10-22 18:21:43 +05:30
parent ea2a07ec5e
commit 58f7dceab9
1 changed files with 4 additions and 0 deletions

View File

@ -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: