diff options
| author | Goffin Simon <sig@odoo.com> | 2020-08-10 13:19:20 +0000 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2020-08-11 09:49:58 +0000 |
| commit | a2f7244fc78292271b70ece0a36a28ec1fe1ce3f (patch) | |
| tree | 7d027eccd21effd8c41cf24a92767c04fd5bc3b7 | |
| parent | 422ca9563ef20f10898377cd6dc316b131d5c268 (diff) | |
[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>
| -rw-r--r-- | addons/account/views/report_invoice.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/views/report_invoice.xml b/addons/account/views/report_invoice.xml index e11e22093c4..2dbcef3c06c 100644 --- a/addons/account/views/report_invoice.xml +++ b/addons/account/views/report_invoice.xml @@ -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]" /> |
