Odoo Help


how to assign menu to groups

on 5/9/13, 8:39 AM 2,456 views

I need to assign the the menu's based on user groups ,how can i achieve this??


Cyril Gaspard (GEM)

--Cyril Gaspard (GEM)--

| 5 6 8
Paris, France
--Cyril Gaspard (GEM)--

Forum contributor since 2008

Cyril Gaspard (GEM)
On 5/11/13, 9:01 AM


<menuitem action="ACTION_ID" id="NEW_MENU_ID" parent="PARENT_MENU_ID" groups="module_name.GROUP_XML_ID"/>



Priyesh Solanki (pso)

--Priyesh Solanki (pso)--

| 2 2 4
--Priyesh Solanki (pso)--
Priyesh Solanki (pso)
On 5/9/13, 8:42 AM

Do you want to assign groups to menu ? If it is, you need to use 'groups' attribute like this:

<menuitem action="ACTION_ID" id="NEW_MENU_ID" 
           parent="PARENT_MENU_ID" groups="GROUP_XML_ID"/>

After making this change in xml file, Update your module and check it.

Thanks, Priyesh Solanki

Thanks for your reply, i have followed the same way and its not working

on 5/9/13, 8:46 AM

Did you update your module with -u MODULE_NAME -d DB_NAME while restarting OpenERP server ?

Priyesh Solanki (pso)
on 5/9/13, 8:47 AM

Ya i have updated but still not working

on 5/9/13, 8:50 AM

Did you add that xml file in __openerp__.py ? Can you check from here: Settings --> Technical --> User Interface --> Menu Items and Search for you menu and open it. In Groups tab, can you that group is coming there that you set in groups attribute ?

Priyesh Solanki (pso)
on 5/9/13, 8:57 AM

for that menu item i am not able to see group , where exactly i am going wrong?

on 5/9/13, 9:05 AM

It looks like your view is not going to be update, I am assuming that everything is correctly done. Though can you try it in new database ?

Priyesh Solanki (pso)
on 5/9/13, 9:16 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 5/9/13, 8:39 AM
Seen: 2456 times
Last updated: 3/16/15, 8:10 AM