[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) <xbo@odoo.com>
This commit is contained in:
Bastien (bvdn)
2024-01-10 08:50:48 +00:00
committed by Xavier Bol (xbo)
parent c198fb8c24
commit 31a42dfdf7
@@ -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;