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

Hello, good day everyone, I have a question on how to hide a menu item on specific department users in odoo 10. Thank you very much in advance.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Create a user group only applicable only for that department user and give group attribute to that particular menu

<record id="access_main_hr_menu" model="res.groups">
<field name="name">Hr Main Menu</field>
</record>
<record model="ir.ui.menu" id="hr.menu_hr_root">
<field name="groups_id" eval="[(6,0,[ref('access_main_hr_menu')])]"/>
</record>

Regards

อวตาร
ละทิ้ง
ผู้เขียน

Okay. Thank very much for your answer. I appreciated it.

ผู้เขียน

It does not work.

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มิ.ย. 24
1664
1
ธ.ค. 23
1387
1
มี.ค. 23
2379
0
ธ.ค. 22
1967
INSTALLING ODOO 10C ERROR แก้ไขแล้ว
1
ต.ค. 21
3908