[FIX] account: Fixed the Balance sheet report problem for blank chart.
bzr revid: vra@tinyerp.com-20101022125143-ze6shi5hqf0fld0n
This commit is contained in:
parent
ea2a07ec5e
commit
58f7dceab9
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue