You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

28 lines
1.4 KiB

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<!-- Inherit ProductsWidgetControlPanel to Modify it -->
<t t-inherit="point_of_sale.ProductsWidgetControlPanel"
t-inherit-mode="extension" owl="1">
<xpath expr="//div[hasclass('rightpane-header')]" position="replace">
<div class="rightpane-header">
<div class="search-bar-container sb-product">
<span t-if="env.isMobile" class="oe_status oe_icon icon"
t-on-click="_toggleMobileSearchbar">
<i t-attf-class="fa {{props.mobileSearchBarIsShown ? 'fa-arrow-left' : 'fa-search'}}"/>
</span>
<t t-if="!env.isMobile || props.mobileSearchBarIsShown">
<div class="pos-search-bar">
<i class="fa fa-search"/>
<input t-ref="search-word-input-product"
placeholder="Search Products..." type="text"
autofocus="autofocus"
t-on-keyup="updateSearch"/>
<i class="fa fa-times search-clear-partner"
t-on-click="_clearSearch"/>
</div>
</t>
</div>
</div>
</xpath>
</t>
</templates>