fix: update PosOrderline import and reference to match Odoo class naming convention
This commit is contained in:
parent
2f7ec27c9a
commit
bd09459c63
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user