[FIX] sale: Base amount not displayed on Pro-forma

Steps to reproduce the bug:

- Let's consider a sale tax T
- Allow Pro-forma in Accounting configuration
- Create a SO with a line of 100 and T on it
- Print the Pro-forma invoice

Bug:

The base amount of T was not displayed next to T below the subtotal

Inspired from report_invoice_document

opw:2172383

closes odoo/odoo#43837

X-original-commit: 472918686fcc723cc6bb30aefacadf00b0cdc31c
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
Goffin Simon
2020-01-23 11:32:06 +00:00
parent 6b4df7538c
commit b0da38e82f
+1 -1
View File
@@ -150,7 +150,7 @@
</tr>
<t t-foreach="doc.amount_by_group" t-as="amount_by_group">
<tr style="">
<t t-if="amount_by_group[3] == 1 and doc.amount_untaxed == amount_by_group[2]">
<t t-if="amount_by_group[5] == 1 and doc.amount_untaxed == amount_by_group[2]">
<td name="td_amount_by_group_label_3">
<span t-esc="amount_by_group[0]"/>
<span>&amp;nbsp;<span>on</span>&amp;nbsp;<t t-esc="amount_by_group[2]" t-options='{"widget": "monetary", "display_currency": doc.pricelist_id.currency_id}'/></span>