Skip to Content
Menu
This question has been flagged

Hi, I want to hide menus only from the users which are in a custom group Customer ,

I tried different solutions but unable to do it.

I tried the following code but it is also not working

<record id="group_project_customer" model="res.groups">
<field name="name">Customer</field>
<field name="category_id" ref="base.module_category_project_management"/>
</record>

<record id="calendar.mail_menu_calendar" model="ir.ui.menu">
<field name="groups_id" eval="[(3,ref('group_project_customer'))]"/>
</record>

<record id="website.menu_website_configuration" model="ir.ui.menu">
<field name="groups_id" eval="[(3,ref('group_project_customer'))]"/>
</record>

<record model='ir.ui.menu' id='mail.menu_root_discuss'>
<field name="groups_id" eval="[(3,ref('group_project_customer'))]"/>
</record>
Avatar
Discard
Best Answer

Hi,

Try the following

<record id="calendar.mail_menu_calendar" model="ir.ui.menu">
        <field name="groups_id" eval="[(6,0,[ref('module_name.module_category_project_management')])]"/>
    </record>

Hope it helps

Avatar
Discard
Related Posts Replies Views Activity
0
Feb 23
968
2
Oct 21
6168
1
Dec 20
3541
3
Jan 24
1794
0
Oct 22
1990