From 53ed5d54cb28b4f2d797ec17abd89b369f712dde Mon Sep 17 00:00:00 2001 From: "Laurent Stukkens (LTU)" Date: Fri, 20 May 2022 09:32:06 +0000 Subject: [PATCH] [FIX] project: remove unnecessary condition in `_onDeleteColumn` This commit removes the unnecessary condition on modelName as the code stands in `ProjectTaskKanbanColumn` which is only used in the `project.task` kanban view. closes odoo/odoo#91965 X-original-commit: cb55586bd3da19a6fbbb22728f9d2961830e1592 Signed-off-by: William Braeckman (wbr) Signed-off-by: Laurent Stukkens (ltu) --- addons/project/static/src/js/project_kanban.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project/static/src/js/project_kanban.js b/addons/project/static/src/js/project_kanban.js index 56e5ad6237c..4289c5ddcf5 100644 --- a/addons/project/static/src/js/project_kanban.js +++ b/addons/project/static/src/js/project_kanban.js @@ -63,7 +63,7 @@ const ProjectTaskKanbanColumn = KanbanColumn.extend({ * @private */ _onDeleteColumn: function (event) { - if (this.modelName === 'project.task' && this.groupedBy === 'stage_id') { + if (this.groupedBy === 'stage_id') { event.preventDefault(); this.trigger_up('kanban_column_delete_wizard'); return;