I am trying to highlight POS orderlines when a discount is applied.
To do this, I extended the default template point_of_sale.Orderline and attempted to add a background color conditionally.
This is the inherit template I used:
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-name="test.OrderlineDiscountHighlight"
t-inherit="point_of_sale.Orderline"
t-inherit-mode="extension"
owl="1">
<xpath expr="//li[hasclass('orderline')]" position="attributes">
<attribute name="t-attf-style">
{{ line.discount and line.discount !== '0'
? 'background-color:#e7f3f5;'
: '' }}
</attribute>
</xpath>
</t>
</templates>
The problem is:
The inherit is not applied at all.
I want to understand:
Why the POS asset bundle is not loading my XML file
Whether the _assets_pos bundle needs another configuration
Or if there is a specific requirement for extending OWL templates in POS 17
Any clarification would be appreciated.