From f2c1472f0fbc1fd3f2676c9304e2c0bd9b238bd9 Mon Sep 17 00:00:00 2001 From: Panagiotis Kyriakou Date: Fri, 21 Apr 2023 14:29:33 +0000 Subject: [PATCH] [IMP] make the kanban subtask button clickable everywhere This commit button makes the kanban substack button clickable everywhere - both in the icon and the x/y indication next to it. Additionally, this commit also makes it that the tooltip on hover is shown when the user hovers over both the icon and the x/y indication. Task-3284498 closes odoo/odoo#119468 Signed-off-by: Xavier Bol (xbo) --- .../project_task_kanban_compiler.js | 4 ++++ addons/project/views/project_task_views.xml | 15 ++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/addons/project/static/src/views/project_task_kanban/project_task_kanban_compiler.js b/addons/project/static/src/views/project_task_kanban/project_task_kanban_compiler.js index 3f92fdeb904..34c8c3b0515 100644 --- a/addons/project/static/src/views/project_task_kanban/project_task_kanban_compiler.js +++ b/addons/project/static/src/views/project_task_kanban/project_task_kanban_compiler.js @@ -28,6 +28,10 @@ export class ProjectTaskKanbanCompiler extends KanbanCompiler { compiled.setAttribute(name, value); } + for (const child of el.childNodes) { + append(compiled, this.compileNode(child)); + } + return compiled; } diff --git a/addons/project/views/project_task_views.xml b/addons/project/views/project_task_views.xml index 62416bcf1e1..bc6987d1db4 100644 --- a/addons/project/views/project_task_views.xml +++ b/addons/project/views/project_task_views.xml @@ -606,14 +606,15 @@ -
- - - / + + + -
- - / +
+ +