Skip to content

Commit 99306bc

Browse files
committed
[FIX] purchase: Correct display in purchase report
Changed the tax display in the purchase order template from `t-esc` to `t-out` to ensure proper HTML rendering of tax labels. This adjustment is necessary to display the tax descriptions correctly without escaping HTML content. Before this commit writing a tax description and then generating a purchase order report led to the bad escaping of the tax description HTML content, which was causing display issues in the rendered document. This change addresses the need for accurate representation of tax information in purchase orders, improving the clarity and correctness of the document output. opw-4313981 closes odoo#189234 X-original-commit: ef6cfbe Signed-off-by: Adrien Widart (awt) <[email protected]> Signed-off-by: Julien Schwanen (scju) <[email protected]>
1 parent bfce419 commit 99306bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/purchase/report/purchase_order_templates.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
<span class="text-align-bottom"><span t-field="line.discount"/>%</span>
8989
</td>
9090
<td class="text-end">
91-
<span t-esc="', '.join([(tax.invoice_label or tax.name) for tax in line.taxes_id])"/>
91+
<span t-out="', '.join([(tax.invoice_label or tax.name) for tax in line.taxes_id])"/>
9292
</td>
9393
<td class="text-end">
9494
<span t-field="line.price_subtotal"
@@ -113,7 +113,7 @@
113113
<td colspan="99" id="subtotal">
114114
<strong class="mr16">Subtotal</strong>
115115
<span
116-
t-esc="current_subtotal"
116+
t-out="current_subtotal"
117117
t-options='{"widget": "monetary", "display_currency": o.currency_id}'
118118
/>
119119
</td>

0 commit comments

Comments
 (0)