Odoo Help

Welcome!

This community 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.

0

how to assign menu to groups

By
Maniganda
on 5/9/13, 8:39 AM 1,648 views

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

1

Cyril Gaspard (GEM)

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

Forum contributor since 2008

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

HI,

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

Bye.

0

Priyesh Solanki (pso)

--Priyesh Solanki (pso)--
Tiny ERP Pvt Ltd
http://www.odoo.com
1100
| 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

Maniganda
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

Maniganda
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?

Maniganda
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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

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