From 96c11f3e9c131ddfcb03ab4417c260d6ea473a9b Mon Sep 17 00:00:00 2001 From: "Xavier Bol (xbo)" Date: Thu, 4 May 2023 07:09:43 +0000 Subject: [PATCH] [FIX] project: avoid autofocus the state field Before this commit, when the user goes to the form view of a task and when to add a subtask into it. When he clicks on `Add a line` on the subtree view of subtasks the state field is focused because it is the first field focusable in that list view. This commit removes the state field in focusable elements to directly focus the next focusable element who is the name field. task-3248592 Part-of: odoo/odoo#120508 --- .../project_task_state_selection.xml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/addons/project/static/src/components/project_task_state_selection/project_task_state_selection.xml b/addons/project/static/src/components/project_task_state_selection/project_task_state_selection.xml index e901287eba5..300c4e78559 100644 --- a/addons/project/static/src/components/project_task_state_selection/project_task_state_selection.xml +++ b/addons/project/static/src/components/project_task_state_selection/project_task_state_selection.xml @@ -1,6 +1,9 @@ + + -1 + {{ stateIcon(currentValue) }} {{ statusColor(currentValue) }} @@ -15,10 +18,15 @@ - -