Skip to content

Commit

Permalink
[UPD][pos_credit_card_installment]: Updating addons.
Browse files Browse the repository at this point in the history
  • Loading branch information
devodoo88 committed Apr 18, 2024
1 parent 27ad72a commit 11bb19c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ odoo.define('pos_credit_card_installment.CreditCardInstallmentButton', function
ticket_number: '',
});
useListener('click', this.onClick);
useListener('send-payment', this.sendPayment);
}
async onClick() {
async sendPayment() {
console.log()
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="CreditCardInstallmentButton" owl="1">
<div class="header-button" t-on-click="onClick">
<span><i class="fa fa-sign-out" role="img"/> <t t-if="!env.isMobile">Enviar a la terminal</t></span>
<div class="header-button"
t-on-click="() => this.trigger('send-payment')"
aria-label="Enviar" title="Enviar">
<span><i class="fa fa-sign-out" role="img"/> <t t-if="!env.isMobile">Enviar</t></span>
</div>
</t>
</templates>

0 comments on commit 11bb19c

Please sign in to comment.