This question has been flagged
2 Replies
1898 Views

Hi Everyone, 

i am trying to remove some user menu items yet i cant seem to find the way, i have found a tutorial on Cybrosys for odoo 15 not 16 unfortonately i cant share it het but it is on Cybrosys with the name :How to Create & Manage a New User Menu in Odoo 15

with the user menu items i mean when you click on your profile/picture 

and you see documentation etc. 

is this still relevant or can anyone help me with this!? 


Avatar
Discard
Author

I tried no result i dont understand what she means by : 


Manifest:

'assets': {'web.assets_backend': ['Your custom module name/static/src/js/menu.js']},




//For remove menu:

patch(UserMenu.prototype, "Your custom module name.UserMenu", {
setup() {
this._super.appy(this, arguments); 
userMenuRegistry.remove("documentation");
},

});



i dont understand your custom module ?? 

i just created a js file and put it in C:\Program Files\Odoo\server\odoo\addons\web\static\src\webclient\user_menu and than i manifested in here C:\Program Files\Odoo\server\odoo\addons\web

i am a bit new to js so if anyone can help out XD 



Author

Hi Cybrosys techo solutions , 

thankyou for your response, the blog only tells how to add not delete. 

and in your module i cant hide : Documentation, support and my odoo account.

if anyone else has a idea i would love to hear this !