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.
64 lines
2.4 KiB
64 lines
2.4 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<templates id="template" xml:space="preserve">
|
|
|
|
<t t-extend="ReceiptScreenWidget">
|
|
<t t-jquery=".button.print" t-operation="after">
|
|
<div class="button print_ticket_without_price">
|
|
<i class='fa fa-print'></i> Print Ticket Without Price
|
|
</div>
|
|
</t>
|
|
</t>
|
|
|
|
<t t-name="PosTicketWithoutPrice" t-extend="PosTicket">
|
|
<t t-jquery=".pos-sale-ticket" t-operation="prepend">
|
|
<div class="pos-center-align">
|
|
TICKET WITHOUT PRICE
|
|
</div>
|
|
</t>
|
|
<t t-jquery="tr[t-foreach='orderlines'] > td:nth-child(3)"
|
|
t-operation="attributes">
|
|
<attribute name="class">oe_hidden</attribute>
|
|
</t>
|
|
<t t-jquery=".receipt-total" t-operation="attributes">
|
|
<attribute name="class">oe_hidden</attribute>
|
|
</t>
|
|
<t t-jquery=".receipt-paymentlines" t-operation="attributes">
|
|
<attribute name="class">oe_hidden</attribute>
|
|
</t>
|
|
<t t-jquery=".receipt-change" t-operation="attributes">
|
|
<attribute name="class">oe_hidden</attribute>
|
|
</t>
|
|
</t>
|
|
|
|
<t t-name="XmlReceiptWithoutPrice" t-extend="XmlReceipt">
|
|
<t t-jquery="t[t-if='receipt.company.logo']" t-operation="before">
|
|
<h1>TICKET WITHOUT PRICE</h1>
|
|
</t>
|
|
|
|
<t t-jquery="t[t-foreach='receipt.orderlines']" t-operation="replace">
|
|
<t t-foreach='receipt.orderlines' t-as='line'>
|
|
<value t-att-value-decimals='pos.dp["Product Unit of Measure"]' value-autoint='on'>
|
|
<t t-esc='line.quantity' />
|
|
</value>
|
|
x
|
|
<t t-esc='line.product_name_wrapped[0]' />
|
|
<br/>
|
|
</t>
|
|
</t>
|
|
|
|
<t t-jquery="t[t-set='taxincluded']" t-operation="replace" />
|
|
<t t-jquery="t[t-set='!taxincluded']" t-operation="replace" />
|
|
<t t-jquery="t[t-set='taxincluded']" t-operation="replace" />
|
|
|
|
<t t-jquery="line > right" t-operation="replace" />
|
|
<t t-jquery="line > left" t-operation="replace" />
|
|
|
|
<t t-jquery="line[class='total']" t-operation="replace" />
|
|
<t t-jquery="t[t-foreach='paymentlines']" t-operation="replace" />
|
|
<t t-jquery="line[size='double-height']" t-operation="replace" />
|
|
<t t-jquery="line[class='before-footer']" t-operation="replace" />
|
|
|
|
|
|
</t>
|
|
|
|
</templates>
|