跳至內容
選單
此問題已被標幟
3 回覆
5394 瀏覽次數

Hello All,

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

Is it possible?


Regards,

Prince.


頭像
捨棄
最佳答案

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>
頭像
捨棄
最佳答案

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..
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
5月 25
10283
1
4月 24
2750
1
2月 23
2779
0
10月 21
3010
7
3月 24
9764