AVecinal/avecinal#10 Añadido módulo que añade la tarifa configurada en el cliente al ticket.
This commit is contained in:
parent
56b6dd758e
commit
5e8d01f6e6
3 changed files with 42 additions and 0 deletions
0
pos_ticket_pricelist/__init__.py
Normal file
0
pos_ticket_pricelist/__init__.py
Normal file
21
pos_ticket_pricelist/__manifest__.py
Normal file
21
pos_ticket_pricelist/__manifest__.py
Normal 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': [
|
||||
],
|
||||
}
|
||||
21
pos_ticket_pricelist/static/src/xml/pos.xml
Normal file
21
pos_ticket_pricelist/static/src/xml/pos.xml
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue