fix: update xpath selector to use contains for category-list class compatibility

This commit is contained in:
Suherdy Yacob 2026-06-02 08:46:59 +07:00
parent 671f508b85
commit 35f254ddb0

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-inherit="point_of_sale.CategorySelector" t-inherit-mode="extension" owl="1">
<xpath expr="//div[hasclass('category-list')]" position="replace">
<xpath expr="//div[contains(@t-attf-class, 'category-list')]" position="replace">
<div t-if="portraitMode.isPortrait" class="portrait-category-dropdown p-2 bg-view border-bottom w-100">
<select class="form-select form-select-lg w-100 bg-light border-0 rounded-3 text-dark fw-bold"
t-on-change="(ev) => this.pos.setSelectedCategory(ev.target.value ? parseInt(ev.target.value) : 0)">