From 9fa61411c274c835a93ed0d51a52f34ae5dd8256 Mon Sep 17 00:00:00 2001 From: "Hubert Van de Walle (huvw)" Date: Tue, 25 Apr 2023 14:39:53 +0000 Subject: [PATCH] [FIX] sale_stock: allow to tab past an empty QtyAtDateWidget Steps to reproduce ================== - In the settings, check the "Reception Report" option - Create a new quotation - Add a line - Do not select a product - Press tab a few times The focus doesn't go past the Quantity widget Cause of the issue ================== The next item to be focused when pressing tab is selecting with the following selector https://github.com/odoo/odoo/blob/13745d597d03b552fe5f73ca81143a49efb8aa9f/addons/web/static/src/core/utils/ui.js#L159-L161 Since there is a tabindex of 0, the focus will try to go to the QtyAtDateWidget Solution ======== Set the tabindex to -1 when no value has been set opw-3266063 closes odoo/odoo#120005 X-original-commit: 30fcb2e60fed17a473353b21bac4916e9ab77b10 Signed-off-by: William Henrotin (whe) Signed-off-by: Hubert Van De Walle --- addons/sale_stock/static/src/widgets/qty_at_date_widget.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale_stock/static/src/widgets/qty_at_date_widget.xml b/addons/sale_stock/static/src/widgets/qty_at_date_widget.xml index 69abc29b801..2443fb9d3a2 100644 --- a/addons/sale_stock/static/src/widgets/qty_at_date_widget.xml +++ b/addons/sale_stock/static/src/widgets/qty_at_date_widget.xml @@ -4,7 +4,7 @@
- +