[FIX] account: Tax 0% displayed as a tax group on Invoice
Steps to reproduce: - Let's consider a sale tax T of 0% with Tax group Tax 0% - Create an customer invoice I with one line L of 100€ - Set T on L - Print the invoice without payment Bug: The tax T was displayed as a group with "Taxes on 100€" instead of Tax 0%. opw:2268926 closes odoo/odoo#55731 X-original-commit: 3e0defe37ef8d2081e72290d701738e1ab68d3c6 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
This commit is contained in:
@@ -132,7 +132,7 @@
|
||||
</tr>
|
||||
<t t-foreach="o.amount_by_group" t-as="amount_by_group">
|
||||
<tr style="">
|
||||
<t t-if="len(o.line_ids.filtered(lambda line: line.tax_line_id)) == 1 and o.amount_untaxed == amount_by_group[2]">
|
||||
<t t-if="len(o.line_ids.filtered(lambda line: line.tax_line_id)) in [0, 1] and o.amount_untaxed == amount_by_group[2]">
|
||||
<td><span class="text-nowrap" t-esc="amount_by_group[0]"/></td>
|
||||
<td class="text-right o_price_total">
|
||||
<span class="text-nowrap" t-esc="amount_by_group[3]" />
|
||||
|
||||
Reference in New Issue
Block a user