AVecinal/avecinal#10 Añadido módulo que añade la tarifa configurada en el cliente al ticket.

This commit is contained in:
Luis 2022-06-28 10:26:19 +02:00
parent 56b6dd758e
commit 5e8d01f6e6
3 changed files with 42 additions and 0 deletions

View file

View file

@ -0,0 +1,21 @@
# 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': '12.0.1.0.0',
'license': 'AGPL-3',
'author': 'Criptomart',
'website': 'https://criptomart.net',
'depends': [
],
'data': [
],
'qweb': [
'static/src/xml/pos.xml',
],
'demo': [
],
}

View file

@ -0,0 +1,21 @@
<?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>
</t>
<t t-extend="XmlReceipt">
<t t-jquery="[t-if='!receipt.company.logo']" 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>
</t>
</templates>