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

What happens when there is more than one access right for the same object in ACL?

By
Hammad hussain qureshi
on 2/23/15, 1:20 AM 531 views

How does ACL behave when there is more than one access rights for the same object for the same group.

For example: There is two rights entries for the object 'partner' for the same group sale/manager, having different accesses.

res.partner.sale.manager      -     Partner        -      Sales / Manager

res.partner.crm.user         -          Partner     -        Sales / Manager

Which access right will be used?

1

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
3918
| 5 3 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 2/23/15, 2:02 AM

It will take the access rights with OR condition of those 2 access lines

access1, base.model_res_partner,1,0,0,0
access2, base.model_res_partner,1,1,1,0

Output will be a OR condition of both access (1,1,1,0)

Note:
So, you should always overwrite existing access to satisfy your condition.
i.e. change the access available in odoo modules by using id="MODULENAME.EXISTING_ID"

E.g. to change access

base.access_res_partner_group_partner_manager,res_partner group_partner_manager,base.model_res_partner,base.group_partner_manager,1,1,1,0

 

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)

Stats

Asked: 2/23/15, 1:20 AM
Seen: 531 times
Last updated: 3/30/15, 1:57 AM