Skip to Content
Menú
This question has been flagged
3 Respostes
5391 Vistes

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
Descartar
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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
1
de maig 25
10280
1
d’abr. 24
2746
1
de febr. 23
2773
0
d’oct. 21
3010
7
de març 24
9763