I have this menu item, and I want to hide or remove it.
First create a dummy group with no users in it
<record id="make_invisible" model="res.groups">
<field name="name">Invisible</field>
</record>
Replace all users in the group. The eval
statement here means, replace all ids in the groups_id
field with the id for group make_invisible
.
<record model="ir.ui.menu" id="module.menu_name">
<field name="groups_id" eval="[(6,0,[ref('make_invisible')])]"/>
</record>
You can find more information on how the eval works here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With