Skip to content

Commit

Permalink
Merge PR #3029 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed May 8, 2023
2 parents e8602d1 + b0424d5 commit 840ea85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l10n_es_pos/static/src/js/PaymentScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ odoo.define("l10n_es_pos.PaymentScreen", function (require) {
// eslint-disable-next-line no-shadow
const L10nEsPosPaymentScreen = (PaymentScreen) =>
class extends PaymentScreen {
async _finalizeValidation() {
async validateOrder(isForceValidate) {
const below_limit =
this.currentOrder.get_total_with_tax() <=
this.env.pos.config.l10n_es_simplified_invoice_limit;
Expand All @@ -26,7 +26,7 @@ odoo.define("l10n_es_pos.PaymentScreen", function (require) {
order.to_invoice = true;
}
}
super._finalizeValidation();
await super.validateOrder(isForceValidate);
}
};

Expand Down

0 comments on commit 840ea85

Please sign in to comment.