Odoo18-Base/addons/l10n_br_sales/views/sale_portal_templates.xml
2025-01-06 10:57:38 +07:00

24 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="sale_order_portal_content_brazil" inherit_id="sale.sale_order_portal_content" primary="True">
<!-- hide the taxes th -->
<th id="taxes_header" position="replace"/>
<!-- hide the taxes td -->
<td id="taxes" position="replace"/>
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal" position="attributes">
<attribute name="t-value">current_subtotal + line.price_total</attribute>
</t>
<span t-field="line.price_subtotal" position="attributes">
<attribute name="t-field">line.price_total</attribute>
</span>
<xpath expr="//t[@t-call='sale.sale_order_portal_content_totals_table']" position="replace">
<table class="table table-sm">
<t t-call="l10n_br_sales.document_tax_totals_brazil">
<t t-set="tax_totals" t-value="sale_order.tax_totals"/>
<t t-set="currency" t-value="sale_order.currency_id"/>
</t>
</table>
</xpath>
</template>
</odoo>