Merge pull request #162 from pedrobaeza/8.0-account_financial_report_webkit-top_level_account

[FIX] account_financial_report_webkit: Don't overpass top level account
pull/166/head
Stéphane Bidoul (ACSONE) 2016-02-23 11:06:56 +01:00
commit 6939163548
1 changed files with 0 additions and 2 deletions

View File

@ -288,8 +288,6 @@ class CommonBalanceReportHeaderWebkit(CommonReportHeaderWebkit):
balance_accounts = dict.fromkeys(account_ids, False)
for account in objects:
if not account.parent_id: # hide top level account
continue
if account.type == 'consolidation':
to_display_accounts.update(
dict([(a.id, False) for a in account.child_consol_ids]))