restore product_update_price_last_purchase and pos_ticket_pricelist

This commit is contained in:
Luis 2024-12-30 17:12:50 +01:00
parent 412d897695
commit b5bb678cbc
16 changed files with 1296 additions and 0 deletions

View file

View file

@ -0,0 +1,24 @@
# Copyright 2022 Criptomart
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Pos Ticket Pricelist',
'description': """
Prints the pricelist applied on tickets.""",
'version': "16.0.1.0.0",
'license': 'AGPL-3',
'author': 'Criptomart',
'website': 'https://criptomart.net',
'depends': [
"point_of_sale"
],
'data': [
],
'assets': {
'point_of_sale.assets': [
'pos_ticket_pricelist/static/src/xml/pos.xml'
],
},
'demo': [
],
}

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<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>
</xpath>
<xpath expr='//t[@t-if="receipt.company.website"]' position="attributes">
<attribute name="t-att-class">{'oe_hidden': True}</attribute>
</xpath>
</t>
</templates>