Skip to Content
Menu
This question has been flagged
3 Replies
5815 Views

Hello All,

How to hide the existing menu by using it's xml ID from the website menu bar?

Is it possible?


Regards,

Prince.


Avatar
Discard
Best Answer

You can also hide a menu using XML.

<record id="original_module.menu_id" model="ir.ui.menu">
    <field name="groups_id" eval="[(3, ref('my_new_group_id'))]" />
<record>
Avatar
Discard
Best Answer

dear Prince Caspion,

you can delete menus by this code

<delete model="ir.ui.menu" id="ModuleName.menu id"/>

another way you can create new hide group and then assigned to any menus you do not need . this group not assigned to any user. I think this is better way.

I hope i helped you..
Avatar
Discard
Related Posts Replies Views Activity
1
May 25
10940
1
Apr 24
7958
1
Feb 23
8170
0
Oct 21
3381
7
Mar 24
10314