diff --git a/fiscal_epos_print/static/src/js/ChromeWidgets/SetLotteryCodeButton.js b/fiscal_epos_print/static/src/js/ChromeWidgets/SetLotteryCodeButton.js index 468c74e9a4a..bff522b6536 100644 --- a/fiscal_epos_print/static/src/js/ChromeWidgets/SetLotteryCodeButton.js +++ b/fiscal_epos_print/static/src/js/ChromeWidgets/SetLotteryCodeButton.js @@ -3,7 +3,7 @@ odoo.define("fiscal_epos_print.SetLotteryCodeButton", function (require) { const PosComponent = require("point_of_sale.PosComponent"); const ProductScreen = require("point_of_sale.ProductScreen"); - const {useListener} = require("web.custom_hooks"); + const {useListener} = require("@web/core/utils/hooks"); const Registries = require("point_of_sale.Registries"); const {Gui} = require("point_of_sale.Gui"); const core = require("web.core"); diff --git a/fiscal_epos_print/static/src/js/Popups/LotteryCodePopup.js b/fiscal_epos_print/static/src/js/Popups/LotteryCodePopup.js index 0c7c0e00e2a..703de9b7b6f 100644 --- a/fiscal_epos_print/static/src/js/Popups/LotteryCodePopup.js +++ b/fiscal_epos_print/static/src/js/Popups/LotteryCodePopup.js @@ -29,7 +29,7 @@ odoo.define("fiscal_epos_print.LotteryCodePopup", function (require) { if (allValid()) { this.$el.find("#error-message-dialog").hide(); - var lottery_code = this.$el.find("#lottery_code").val(); + var lottery_code = this.inputLotteryCode.el.value; this.env.pos.context = { lottery_code: lottery_code, }; diff --git a/fiscal_epos_print/static/src/js/Popups/RefundInfoPopup.js b/fiscal_epos_print/static/src/js/Popups/RefundInfoPopup.js index 031d9337041..c695302cc24 100644 --- a/fiscal_epos_print/static/src/js/Popups/RefundInfoPopup.js +++ b/fiscal_epos_print/static/src/js/Popups/RefundInfoPopup.js @@ -35,13 +35,12 @@ odoo.define("fiscal_epos_print.RefundInfoPopup", function (require) { if (allValid()) { this.$el.find("#error-message-dialog").hide(); - var refund_date = this.$el.find("#refund_date").val(); - var refund_report = this.$el.find("#refund_report").val(); - var refund_doc_num = this.$el.find("#refund_doc_num").val(); - var refund_cash_fiscal_serial = this.$el - .find("#refund_cash_fiscal_serial") - .val(); - var refund_full_refund = this.$el.find("#refund_full_refund").val(); + var refund_date = this.inputRefundDate.el.value; + var refund_report = this.inputRefundReport.el.value; + var refund_doc_num = this.inputRefundDocNum.el.value; + var refund_cash_fiscal_serial = + this.inputRefundCashFiscalSerial.el.value; + var refund_full_refund = this.inputRefundFullRefund.el.checked; this.env.pos.context = { refund_details: true, refund_date: refund_date, diff --git a/fiscal_epos_print/static/src/xml/Popups/RefundInfoPopup.xml b/fiscal_epos_print/static/src/xml/Popups/RefundInfoPopup.xml index df0f351d667..fe10d84ceee 100644 --- a/fiscal_epos_print/static/src/xml/Popups/RefundInfoPopup.xml +++ b/fiscal_epos_print/static/src/xml/Popups/RefundInfoPopup.xml @@ -61,7 +61,7 @@ class="detail refund_full_refund" type='checkbox' t-att-value="props.refund_full_refund || ''" - t-ref="inputRefund_full_refund" + t-ref="inputRefundFullRefund" />