Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
1520 Prikazi

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.

Avatar
Opusti
Best Answer

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

Avatar
Opusti
Avtor

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

Avtor

It does not work.

Related Posts Odgovori Prikazi Aktivnost
2
jun. 24
1628
1
dec. 23
1341
1
mar. 23
2359
0
dec. 22
1932
1
okt. 21
3889