Hello everyone,
I am working with Odoo 17 and I would like to know if it is possible to hide the "My Profile" menu (from the user dropdown in the top-right corner) for specific users.
My goal is to prevent certain users from accessing their profile from this menu.
I have noticed that the view used when opening "My Profile" from the top menu is different from the one used when accessing the user form from the Settings menu, even though both are based on the same model (res.users).
So my questions are:
- Is there a way to hide or restrict access to the "My Profile" menu for specific users?
- Why does Odoo use a different view in this case?
- What would be the best approach to control this behavior (security rules, view customization, or overriding the action)?
Any guidance would be appreciated.
Thank you!
Hello,
You can patch the UserMenu and remove items based on condition.
You can refer this free app: https://apps.odoo.com/apps/modules/17.0/cst_hide_user_submenus
Hope this helps
Thanks