diff --git a/static/src/js/pos_hardware_proxy_patch.js b/static/src/js/pos_hardware_proxy_patch.js index ec7e6de..5599467 100644 --- a/static/src/js/pos_hardware_proxy_patch.js +++ b/static/src/js/pos_hardware_proxy_patch.js @@ -7,7 +7,7 @@ import { patch } from "@web/core/utils/patch"; import { getBluetoothPrintingServices } from "./pos_receipt_printer"; import { PaymentScreen } from "@point_of_sale/app/screens/payment_screen/payment_screen"; import { OpeningControlPopup } from "@point_of_sale/app/components/popups/opening_control_popup/opening_control_popup"; -import { ClosingPopup } from "@point_of_sale/app/components/popups/closing_popup/closing_popup"; +import { ClosePosPopup } from "@point_of_sale/app/components/popups/closing_popup/closing_popup"; import { onMounted } from "@odoo/owl"; // Patch OpeningControlPopup to open cash drawer automatically upon loading @@ -22,8 +22,8 @@ patch(OpeningControlPopup.prototype, { } }); -// Patch ClosingPopup to open cash drawer automatically upon loading -patch(ClosingPopup.prototype, { +// Patch ClosePosPopup to open cash drawer automatically upon loading +patch(ClosePosPopup.prototype, { setup() { super.setup(...arguments); onMounted(() => {