[IMP] account_financial_report: Hide values that have the same currency as the company currency

An amount_different_company_currency cell type is added to apply the following logic:
- If the currency is the same as the company's currency, we will leave the value empty.
- If the currency is different from the company's currency, we will show the value.

TT38722
This commit is contained in:
Víctor Martínez
2022-09-08 12:37:22 +02:00
committed by chaule97
parent 2e678ee7b9
commit 50775bc204
24 changed files with 446 additions and 1243 deletions

View File

@@ -591,6 +591,7 @@
<t
t-set="total_bal_curr"
t-value="total_bal_curr + line['bal_curr']"
t-if="line_currency!=company_currency"
/>
<!--## amount_currency-->
<div class="act_as_cell amount" style="width: 3.63%;">
@@ -600,6 +601,7 @@
view-type="form"
t-raw="line['bal_curr']"
t-options="{'widget': 'monetary', 'display_currency': line_currency}"
t-if="line_currency!=company_currency"
/>
</div>
<!--## amount_currency cumulated-->
@@ -610,6 +612,7 @@
view-type="form"
t-raw="total_bal_curr"
t-options="{'widget': 'monetary', 'display_currency': line_currency}"
t-if="line_currency!=company_currency"
/>
</div>
</t>