Skip to Content
मेन्यू
This question has been flagged
2481 Views

In odoo15, how can I add new menu in usermenu.I try the following but not working.

import { registry } from "@web/core/registry";

export function UserLog(env) {
return {
type: "item",
id: "log",
description: env._t("Log"),
callback: async function () {
const actionDescription = await env\.services\.orm\.call\("user\.recent\.log",\ "action_user_activity"\);
\ \ \ \ \ \ \ \ \ \ \ \ env.services.action.doAction(actionDescription);
},
sequence: 70,
};
}

registry.category("user_menuitems").add('profile', UserLog)

Avatar
Discard
Related Posts Replies Views Activity
1
मई 25
4250
1
नव॰ 22
1877
1
नव॰ 22
2055
0
दिस॰ 20
58
1
मई 20
7263