[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) <wbr@odoo.com>
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
This commit is contained in:
Laurent Stukkens (LTU)
2022-05-20 17:53:14 +02:00
parent da1b2c0c3c
commit 53ed5d54cb
@@ -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;