[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user