[MIG] website_search_products: Migration to 16.0

This commit is contained in:
Luis 2024-01-11 10:42:00 +01:00
parent 8fb784bdc3
commit 9846c183ec
5 changed files with 23 additions and 23 deletions

View file

@ -10,12 +10,15 @@
'author': 'Criptomart',
'website': 'https://criptomart.net',
'depends': [
"point_of_sale"
],
'data': [
],
'qweb': [
'static/src/xml/pos.xml',
],
'assets': {
'point_of_sale.assets': [
'pos_ticket_pricelist/static/src/xml/pos.xml'
],
},
'demo': [
],
}

View file

@ -1,21 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-extend="PosTicket">
<t t-jquery="table.receipt-orderlines" t-operation="before">
<t t-if="order.get_client()">
<t t-if="order.get_client().property_product_pricelist">
<t t-esc="order.get_client().property_product_pricelist[1]" /><br />
</t>
<br /><br />
<t
t-name="OrderReceipt"
t-inherit="point_of_sale.OrderReceipt"
t-inherit-mode="extension"
owl="1"
>
<xpath expr='//t[@t-if="receipt.cashier"]' position="after">
<t t-if="props.order.pricelist">
<t t-esc="props.order.pricelist.name" /><br />
</t>
</t>
</t>
<t t-extend="XmlReceipt">
<t t-jquery="[t-if='receipt.header_xml']" t-operation="after">
<t t-if="order.get_client()">
<t t-esc="order.get_client().property_product_pricelist[1] ? order.get_client().property_product_pricelist[1] : ''"/><br />
</t>
</t>
</xpath>
<xpath expr='//t[@t-if="receipt.company.website"]' position="attributes">
<attribute name="t-att-class">{'oe_hidden': True}</attribute>
</xpath>
</t>
</templates>