I am using odoo v12. If I want to change menu name or hide that menu to display in website. How I will do this?I have tried to create a function and through that try to change menu name but I of default website this is not work.
for ex. if need to change shop menu to "Products" and hide blog menu from website.
I have tried following code, but It is only work for default menu not for website 1 menu.
_inherit = 'website.menu'
@api.model
def update_menu(self):
self.env.ref('website_sale.menu_shop').write({'name': 'Products'}) //It is change default main menu
return True
Any help?