[FIX] account: Fix tax summary on invoice report

We want to show the base amount for the tax when there are multiple taxes or the
amount is not the invoice total, not the contrary.
This commit is contained in:
Pedro M. Baeza
2018-08-21 10:36:53 +02:00
committed by De Paoli Quentin
parent 00eb2e3e6d
commit 87a6b879a2
+6 -6
View File
@@ -112,6 +112,12 @@
<t t-foreach="o._get_tax_amount_by_group()" t-as="amount_by_group">
<tr style="border-bottom:1px solid #dddddd;">
<t t-if="len(o.tax_line_ids) == 1 and o.amount_untaxed == amount_by_group[2]">
<td><span t-esc="amount_by_group[0]"/></td>
<td class="text-right">
<span t-esc="amount_by_group[3]" />
</td>
</t>
<t t-else="">
<td>
<span t-esc="amount_by_group[0]"/>
<span>&amp;nbsp;<span>on</span>
@@ -122,12 +128,6 @@
<span t-esc="amount_by_group[3]"/>
</td>
</t>
<t t-else="">
<td><span t-esc="amount_by_group[0]"/></td>
<td class="text-right">
<span t-esc="amount_by_group[3]" />
</td>
</t>
</tr>
</t>
<tr class="border-black">