[REF] l10n_in_pos: migration to OWL framework
This commit is contained in:
committed by
Pierre Masereel
parent
ec2c69e1bf
commit
548af5781f
@@ -1,22 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<templates id="template" inherit_id="point_of_sale.template">
|
||||
<t t-extend="OrderReceipt">
|
||||
<t t-jquery="div.orderlines" t-operation="before">
|
||||
<t t-if="receipt.client and pos.company.country.code == 'IN'">
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="OrderReceipt" t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension" owl="1">
|
||||
<xpath expr="//div[hasclass('orderlines')]" position="before">
|
||||
<t t-if="receipt.client and env.pos.company.country.code == 'IN'">
|
||||
<div class="pos-receipt-center-align">
|
||||
<div><t t-esc="receipt.client.name" /></div>
|
||||
<t t-if="receipt.client.phone">
|
||||
<div>Phone: <t t-esc="receipt.client.phone" /></div>
|
||||
<div>
|
||||
<span>Phone: </span>
|
||||
<t t-esc="receipt.client.phone" />
|
||||
</div>
|
||||
</t>
|
||||
<br />
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
<t t-jquery="t[t-call='OrderReceiptWrappedProductNameLines']" t-operation="after">
|
||||
<t t-if="line.l10n_in_hsn_code and pos.company.country.code == 'IN'">
|
||||
<div class="pos-receipt-left-padding">HSN Code: <t t-esc="line.l10n_in_hsn_code"/></div>
|
||||
</xpath>
|
||||
<xpath expr="//WrappedProductNameLines" position="after">
|
||||
<t t-if="line.l10n_in_hsn_code and env.pos.company.country.code == 'IN'">
|
||||
<div class="pos-receipt-left-padding">
|
||||
<span>HSN Code: </span>
|
||||
<t t-esc="line.l10n_in_hsn_code"/>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</xpath>
|
||||
</t>
|
||||
</templates>
|
||||
|
||||
Reference in New Issue
Block a user