Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
5413 มุมมอง

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..
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 25
10289
Website customization แก้ไขแล้ว
1
เม.ย. 24
2837
1
ก.พ. 23
2869
0
ต.ค. 21
3014
7
มี.ค. 24
9772