Skip to content
Snippets Groups Projects
Commit cb55586b authored by Laurent Stukkens (LTU)'s avatar Laurent Stukkens (LTU)
Browse files

[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#91891

Signed-off-by: default avatarWilliam Braeckman (wbr) <wbr@odoo.com>
parent adff71e3
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment