From a44ef8e3931ba11b4d0ee8aff311010c82d55528 Mon Sep 17 00:00:00 2001 From: FactorLibre Date: Tue, 12 Nov 2024 12:04:55 +0100 Subject: [PATCH] [IMP] pos_order_remove_line: set orderline to quantity before delete Ensure the order line is switched to quantity mode before activating delete to prevent errors. --- pos_order_remove_line/static/src/js/orderline.esm.js | 1 + 1 file changed, 1 insertion(+) diff --git a/pos_order_remove_line/static/src/js/orderline.esm.js b/pos_order_remove_line/static/src/js/orderline.esm.js index fe28a12dcf..b8fa42d300 100644 --- a/pos_order_remove_line/static/src/js/orderline.esm.js +++ b/pos_order_remove_line/static/src/js/orderline.esm.js @@ -13,6 +13,7 @@ const PosOrderline = (OriginalOrderline) => ev.stopPropagation(); ev.preventDefault(); this.selectLine(); + this.env.pos.numpadMode = "quantity"; this.trigger("update-selected-orderline", {buffer: null, key: "Backspace"}); } };