Odoo Help

1

check_access_rule orm method

By
shanky
on 5/2/14, 4:40 PM 1,534 views

By looking at the openerp orm method document i am not able to understand what is use of check_access_rule orm method and when to use it? Can you explain with an example?

Hello Shanky, this method is invoked by CRUD methods at the ORM level, I don't think you would get any benefit by directly invoking it. It's purpose has already been explained by Sudhir.

Marvin Taboada
on 11/12/15, 10:52 AM
1

Sudhir Arya (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
11236
| 6 8 8
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 

LinkedIn

Blog

Stackoverflow

Sudhir Arya
ERP Harbor Consulting Services
skype: 
sudhir@erpharbor.com 
Sudhir Arya (ERP Harbor Consulting Services)
On 11/12/15, 10:22 AM

Hello Shanky,

check_access_rule(...) method is used to check the Record Rules for the object and for current logged in user and according to defined rule user will have access on the object (Read, Write, Create, Delete).

This method skips record rules for Super Admin user (SUPERUSER_ID) (user with ID 1).

Hope this will help you a bit to understand the working of the method.

0

Jagdish Panchal

--Jagdish Panchal--

2718
| 5 4 6
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

Jagdish Panchal
On 5/3/14, 1:42 AM

Hi,

This link may help you

Hi, thanks for your quick reply but i have already read this document but i couldn;t understand its actual purpose. When and Why to use check_access_rule method?

shanky
on 5/3/14, 3:10 AM

Using this method you get access for field, object etc. If you want see example then go document module in that module document.py file line number 84 there is example of this method.

Jagdish Panchal
on 5/3/14, 3:19 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.

Register

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

0 follower(s)

Stats

Asked: 5/2/14, 4:40 PM
Seen: 1534 times
Last updated: 11/12/15, 10:52 AM