<?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-set="tax_totals" t-value="sale_order.tax_totals"/>
                <t t-call="l10n_br_sales.document_tax_totals_brazil"/>
            </table>
        </xpath>
    </template>
</odoo>
