From 31a42dfdf742b3032cf24b286b0fba310edaeceb Mon Sep 17 00:00:00 2001 From: "Bastien (bvdn)" Date: Mon, 2 Oct 2023 11:46:02 +0200 Subject: [PATCH] [FIX] project_todo: add actions to the project todo list views thanks to the following PR: https://github.com/odoo/odoo/pull/131369/files todo tasks are not considered grouped by M2M when grouped by personnal stage thus the actions are now available, but still export is missing so we're adding it to the allowed actions Task-3515879 closes odoo/odoo#137239 Signed-off-by: Xavier Bol (xbo) --- .../static/src/views/todo_list/todo_list_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project_todo/static/src/views/todo_list/todo_list_controller.js b/addons/project_todo/static/src/views/todo_list/todo_list_controller.js index 445eeae7fe2..95a4c0b5114 100644 --- a/addons/project_todo/static/src/views/todo_list/todo_list_controller.js +++ b/addons/project_todo/static/src/views/todo_list/todo_list_controller.js @@ -5,7 +5,7 @@ import { ListController } from "@web/views/list/list_controller"; export class TodoListController extends ListController { get actionMenuItems() { this.archiveEnabled = true; - const actionToKeep = ["archive", "unarchive", "duplicate", "delete"]; + const actionToKeep = ["export", "archive", "unarchive", "duplicate", "delete"]; const menuItems = super.actionMenuItems; const filteredActions = menuItems.action?.filter(action => actionToKeep.includes(action.key)) || []; menuItems.action = filteredActions;