[IMP] account_financial_report: Completes the functionality of hide_parent_hierarchy_level field and fix the level of accounts for trial balance

This commit is contained in:
Omar (Comunitea)
2022-04-11 17:48:01 +02:00
committed by chaule97
parent 4af9e021a7
commit 8f6ee42a53
7 changed files with 23 additions and 16 deletions

View File

@@ -544,7 +544,9 @@ class TrialBalanceReport(models.AbstractModel):
account_group_relation = {}
for account in accounts:
accounts_data[account.id]["complete_code"] = (
account.group_id.complete_code if account.group_id.id else ""
account.group_id.complete_code + " / " + account.code
if account.group_id.id
else ""
)
if account.group_id.id:
if account.group_id.id not in account_group_relation.keys():