Files
Odoo-Build/snippets/mint_system.account.report_invoice_document.show_hs_code.xml

14 lines
721 B
XML

<data priority="60">
<xpath expr="//table[@name='invoice_line_table']//th[@name='th_quantity']" position="before">
<t t-set="display_hs_code" t-value="any(l.hs_code for l in o.invoice_line_ids.product_id)"/>
<th name="th_hs_code" class="text-start" t-if="display_hs_code">
<span>HS-Code</span>
</th>
</xpath>
<xpath expr="//table[@name='invoice_line_table']//span[@t-field='line.quantity']/.." position="before">
<t t-set="display_hs_code" t-value="any(l.hs_code for l in o.invoice_line_ids.product_id)"/>
<td name="td_hs_code" class="text-right" t-if="display_hs_code">
<span t-esc="line.product_id.hs_code"/>
</td>
</xpath>
</data>