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