From bd09459c639941e7578cc4b91aa9570bf2169434 Mon Sep 17 00:00:00 2001 From: Suherdy Yacob Date: Fri, 29 May 2026 16:24:19 +0700 Subject: [PATCH] fix: update PosOrderline import and reference to match Odoo class naming convention --- static/src/app/pos_loyalty_safe_coupon_patch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/src/app/pos_loyalty_safe_coupon_patch.js b/static/src/app/pos_loyalty_safe_coupon_patch.js index 3574cc8..87e8ba3 100644 --- a/static/src/app/pos_loyalty_safe_coupon_patch.js +++ b/static/src/app/pos_loyalty_safe_coupon_patch.js @@ -1,7 +1,7 @@ /** @odoo-module **/ import { PosOrder } from "@point_of_sale/app/models/pos_order"; -import { PosOrderLine } from "@point_of_sale/app/models/pos_order_line"; +import { PosOrderline } from "@point_of_sale/app/models/pos_order_line"; import OrderPaymentValidation from "@point_of_sale/app/utils/order_payment_validation"; import { PosStore } from "@point_of_sale/app/services/pos_store"; import { patch } from "@web/core/utils/patch"; @@ -30,7 +30,7 @@ function purgeOrphanedRewardLines(order) { // Patching setup() lets us mark orphaned lines for deletion synchronously, // before OWL components re-render and crash on reward_id.program_id. -patch(PosOrderLine.prototype, { +patch(PosOrderline.prototype, { setup(vals) { super.setup(...arguments); // If this reward line has no valid program, schedule deletion immediately.