Skip to Content
Menu
This question has been flagged
2 Replies
1974 Views

while login by using demo user the submenu items(like Reports, Configuration) are hidden for user other than admin.

I need to know how to enable that submenu items for user other than admin

Avatar
Discard
Author Best Answer

In security xml file or some where else I need to add this code

<record id="menu_external_id" model="ir.ui.menu">

<field name="groups_id" eval="[(6, 0, [ref('base.group_user')] )]"/>

</record>


guide me details




Avatar
Discard

by code mentioned in the answer right, get the external id of the menu , then write code like this,

<record id="menu_external_id" model="ir.ui.menu">

<field name="groups_id" eval="[(6, 0, [ref('base.group_user')] )]"/>

</record>

Best Answer

Try this it may help you,

from user interface you can change it by,
settings->user -> select demo user then change demo user to manager in all sales, purchase etc.

or settings->technical-> user interface ->menu items and select respective menu and add user group to it
By code you can achieve the same by

<record id="menu_external_id" model="ir.ui.menu">   
     <field name="groups_id" eval="[(6, 0, [ref('base.group_user')] )]"/>
 </record>
Avatar
Discard