refactor: rename ClosingPopup to ClosePosPopup in hardware proxy patch

This commit is contained in:
Suherdy Yacob 2026-06-18 06:50:54 +07:00
parent 3fbccec8e3
commit bc57d58e4a

View File

@ -7,7 +7,7 @@ import { patch } from "@web/core/utils/patch";
import { getBluetoothPrintingServices } from "./pos_receipt_printer"; import { getBluetoothPrintingServices } from "./pos_receipt_printer";
import { PaymentScreen } from "@point_of_sale/app/screens/payment_screen/payment_screen"; 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 { 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"; import { onMounted } from "@odoo/owl";
// Patch OpeningControlPopup to open cash drawer automatically upon loading // 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 ClosePosPopup to open cash drawer automatically upon loading
patch(ClosingPopup.prototype, { patch(ClosePosPopup.prototype, {
setup() { setup() {
super.setup(...arguments); super.setup(...arguments);
onMounted(() => { onMounted(() => {