[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

@@ -46,15 +46,13 @@
<t t-foreach="trial_balance" t-as="balance">
<!-- Adapt -->
<t t-set="style" t-value="'font-size:12px;'" />
<t t-if="show_hierarchy">
<t t-if="limit_hierarchy_level">
<t t-if="show_hierarchy and limit_hierarchy_level">
<t
t-if="show_hierarchy_level > balance['level'] and (not hide_parent_hierarchy_level or (show_hierarchy_level - 1) == balance['level'])"
>
<t
t-if="show_hierarchy_level > balance['level'] and (not hide_parent_hierarchy_level or (show_hierarchy_level - 1) == balance['level'])"
>
<t
t-call="account_financial_report.report_trial_balance_line"
/>
</t>
t-call="account_financial_report.report_trial_balance_line"
/>
</t>
</t>
<t t-else="">