From 4403691c43ef107980ae3676ea2d05610304996c Mon Sep 17 00:00:00 2001 From: Jitendra Prajapat Date: Fri, 10 May 2024 13:16:10 +0530 Subject: [PATCH] [FIX] point_of_sale: restrict refund button until qty selected on ticket screen Before this commit: =================== When clicking the refund button without selecting the quantity for the selected order lines, the ticket screen would redirect to the product screen, resulting in empty order lines. After this commit: The refund button will not redirect the ticket screen to the product screen until a quantity is selected for the selected order line. Task ID: 3922007 --- .../screens/product_screen/action_pad/action_pad.xml | 2 +- .../src/app/screens/product_screen/product_screen.xml | 3 ++- .../src/app/screens/ticket_screen/ticket_screen.js | 11 ++--------- .../src/app/screens/ticket_screen/ticket_screen.xml | 2 +- .../point_of_sale/static/src/app/store/pos_store.js | 1 - 5 files changed, 6 insertions(+), 13 deletions(-) diff --git a/addons/point_of_sale/static/src/app/screens/product_screen/action_pad/action_pad.xml b/addons/point_of_sale/static/src/app/screens/product_screen/action_pad/action_pad.xml index c50fe716c2300..634977647569d 100644 --- a/addons/point_of_sale/static/src/app/screens/product_screen/action_pad/action_pad.xml +++ b/addons/point_of_sale/static/src/app/screens/product_screen/action_pad/action_pad.xml @@ -9,7 +9,7 @@