Odoo Help


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.


Menu Access to a group

Vinod Kumar
on 2/5/16, 2:35 AM 529 views

How to give sale menu access for newly created user group


Jignesh Mehta

--Jignesh Mehta--
| 6 4 8
Surat, India
--Jignesh Mehta--

Jignesh Mehta
On 2/5/16, 4:19 AM

Hello Vinod,

You can give access rights for the menu in the ir.model.access.csv file

For Ex:-


First 1 for read,

Second 1 for write, 

Third 1 for create,

Last 1 for delete.


<menuitem name="Sales"



groups="module_name.group_name, base.group_sale_salesman,base.group_sale_manager" sequence="6"/>

Hope it works for you.


Thank you for giving answer, I know how to give access to class/table but i am not able to give access to menu can you help me out

Vinod Kumar
on 2/5/16, 4:26 AM

try to inherit sale menu and apply your custom new group.

Jignesh Mehta
on 2/5/16, 4:28 AM

I have written code like this but its not working

Vinod Kumar
on 2/9/16, 12:19 AM
Vinod Kumar
on 2/9/16, 12:21 AM
On 2/11/16, 1:51 AM

Hi Vinod Kumar

W.r.t your query, I have gone through it and tried to replicate it. Few recommendations which I would like to suggest you which might cater to your needs are as follows:-

1) Yes its possible to assign Sales Menu access for newly created user group

2) For the newly created user group in order to assign access as per group,following can be done while creation of the new groups :-

i) Firstly under Access Rights in groups you just need to add the model name and assign the rights such as READ,WRITE,CREATE & DELETE. This can be done by following Settings >Users>Groups

Refer this screen shot for more details :- http://prntscr.com/a1qzfl

ii) One prerequisite is that the models needs to be defined/developed first so that the same can be assigned along with their access rights for the newly created user groups.

In case your issue is still not solved, kindly let me know.

Hope it helps


Thank you for your answer, i know how to give access to object/model but when i am am not able to access the sales menu for newly created user group i have written code like this Here sales_team_lead is newly created group when i login with this group member i am not able to view opportunity menu

Vinod Kumar
on 2/26/16, 1:04 AM

my code when i login with user bilongs to sale_team_lead group i am not able to access opportunities menu

Vinod Kumar
on 2/26/16, 1:09 AM
On 2/9/16, 7:32 AM

better you can go with front-end. Goto settings -> security -> access control list -> make the access control list manually like this.before that you need to add the group with specific control.

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

1 follower(s)


Asked: 2/5/16, 2:35 AM
Seen: 529 times
Last updated: 2/11/16, 1:51 AM