跳至内容
菜单
此问题已终结
1 回复
1560 查看

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.

相关帖文 回复 查看 活动
2
6月 24
1693
1
12月 23
1394
1
3月 23
2386
0
12月 22
1972
1
10月 21
3922