From c1b2d0f1f47ad9e86be0bbb3e8db7fb91c1f4340 Mon Sep 17 00:00:00 2001 From: Suherdy Yacob Date: Mon, 27 Apr 2026 13:58:07 +0700 Subject: [PATCH] refactor: Update POS component and service import paths to align with Odoo 19 and fix module name in manifest. --- pos_bluetooth_thermal_printer | 1 + static/src/js/pos_navbar_extension.js | 4 ++-- static/src/js/pos_receipt_printer.js | 2 +- static/src/js/pos_session_integration.js | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) create mode 160000 pos_bluetooth_thermal_printer diff --git a/pos_bluetooth_thermal_printer b/pos_bluetooth_thermal_printer new file mode 160000 index 0000000..d13cd3b --- /dev/null +++ b/pos_bluetooth_thermal_printer @@ -0,0 +1 @@ +Subproject commit d13cd3b2c8712bff0eec2f38e04675aea6f95e23 diff --git a/static/src/js/pos_navbar_extension.js b/static/src/js/pos_navbar_extension.js index 366d3be..c0bc96f 100755 --- a/static/src/js/pos_navbar_extension.js +++ b/static/src/js/pos_navbar_extension.js @@ -1,9 +1,9 @@ /** @odoo-module **/ import { Component } from "@odoo/owl"; -import { usePos } from "@point_of_sale/app/store/pos_hook"; +import { usePos } from "@point_of_sale/app/hooks/pos_hook"; import { BluetoothConnectionStatus } from "./connection_status_widget"; -import { Navbar } from "@point_of_sale/app/navbar/navbar"; +import { Navbar } from "@point_of_sale/app/components/navbar/navbar"; import { patch } from "@web/core/utils/patch"; /** diff --git a/static/src/js/pos_receipt_printer.js b/static/src/js/pos_receipt_printer.js index c70ebd5..139711c 100755 --- a/static/src/js/pos_receipt_printer.js +++ b/static/src/js/pos_receipt_printer.js @@ -1,7 +1,7 @@ /** @odoo-module **/ import { patch } from "@web/core/utils/patch"; -import { PosPrinterService } from "@point_of_sale/app/printer/pos_printer_service"; +import { PosPrinterService } from "@point_of_sale/app/services/pos_printer_service"; import { BluetoothPrinterManager, TimeoutError, PrinterNotConnectedError, TransmissionError } from "./bluetooth_printer_manager"; import { EscPosGenerator } from "./escpos_generator"; import { BluetoothPrinterStorage } from "./storage_manager"; diff --git a/static/src/js/pos_session_integration.js b/static/src/js/pos_session_integration.js index 97cf9fc..ab5ebb4 100755 --- a/static/src/js/pos_session_integration.js +++ b/static/src/js/pos_session_integration.js @@ -1,7 +1,7 @@ /** @odoo-module **/ import { patch } from "@web/core/utils/patch"; -import { PosStore } from "@point_of_sale/app/store/pos_store"; +import { PosStore } from "@point_of_sale/app/services/pos_store"; import { getBluetoothPrintingServices } from "./pos_receipt_printer"; import { getErrorNotificationService } from "./error_notification_service";