mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] pos_pax: Rewrite for Odoo 14.0 + Owl
This commit is contained in:
17
pos_pax/static/src/xml/OrderReceipt.xml
Normal file
17
pos_pax/static/src/xml/OrderReceipt.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="pos_pax.OrderReceipt" t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension" owl="1">
|
||||
<xpath expr="//t[@t-foreach='receipt.paymentlines']" position="inside">
|
||||
<t t-if="line.pax_approval">
|
||||
<div class="pos-receipt-left-padding">
|
||||
<span>APPROVAL CODE: </span>
|
||||
<span>
|
||||
<t t-esc="line.pax_approval" />
|
||||
</span>
|
||||
</div>
|
||||
</t>
|
||||
</xpath>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
21
pos_pax/static/src/xml/PAXPaymentScreenPaymentLines.xml
Normal file
21
pos_pax/static/src/xml/PAXPaymentScreenPaymentLines.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="pos_pax.PaymentScreenPaymentLines" t-inherit="point_of_sale.PaymentScreenPaymentLines" t-inherit-mode="extension" owl="1">
|
||||
<xpath expr="//div[hasclass('paymentline')]//t[@t-esc='line.payment_method.name']" position="replace">
|
||||
<t t-if="line.pax_txn_pending">
|
||||
<span>WAITING FOR TXN</span>
|
||||
<div class="pax-send-transaction-button"
|
||||
t-on-click="trigger('pax-send-payment-request', line)"
|
||||
aria-label="Send Transaction" title="Send Transaction">
|
||||
<span>Send</span>
|
||||
</div>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<t t-esc="line.payment_method.name" />
|
||||
<t t-esc="line.name" />
|
||||
</t>
|
||||
</xpath>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
22
pos_pax/static/src/xml/PAXPaymentTransactionPopup.xml
Normal file
22
pos_pax/static/src/xml/PAXPaymentTransactionPopup.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="PAXPaymentTransactionPopup" owl="1">
|
||||
<div role="dialog" class="modal-dialog">
|
||||
<div class="popup">
|
||||
<p class="title">
|
||||
<t t-esc="props.title"></t>
|
||||
</p>
|
||||
<p class="body">
|
||||
<t t-esc="state.message"></t>
|
||||
</p>
|
||||
<div t-if="state.confirmButtonIsShown" class="footer">
|
||||
<div class="button cancel" t-on-click="confirm">
|
||||
<t t-esc="props.confirmText"></t>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
Reference in New Issue
Block a user