[MIG] pos_pax: Rewrite for Odoo 14.0 + Owl

This commit is contained in:
Jared Kipe
2020-11-15 15:07:02 -08:00
parent ad2f9393ab
commit afbdd85c70
18 changed files with 1179 additions and 0 deletions

View 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>

View 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>

View 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>