Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
5679 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
kvě 25
10739
1
dub 24
6799
1
úno 23
6980
0
říj 21
3263
7
bře 24
10130