Odoo Help


Record rules on same object with different CRUD options?

Andrius Laukavičius
on 2/20/14, 5:01 AM 1,258 views

I need to apply different record rules on same object to give different access rights depending on state that record is. For example there are three stages: stage1, stage2, stage3.

On first stage user with specific access rights group can do this:

Read, Write, Create his own records. When he presses button to go to stage2, then he can only Read that record (if that record would go back to stage1 - not by that user, then he could do previous things). And on stage3 that user does not see any records nor his nor any others.

I tried doing something like this:

First rule (applies r,w,c):


This one works. But I get problems when going to other stages. I tried to create another rule2 (applies r):

[('stage','=','stage2')] But it does not work, that user can still do anything that he can do in stage1.

If I make rule like this (applies r,w,c):

['|', ('user_id','=',user.id),('state','=','stage1')]

Then it gives access rights error that you can't go to next stage, because you don't have read access rights on that stage. How can this be solved?..

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

0 follower(s)


Asked: 2/20/14, 5:01 AM
Seen: 1258 times
Last updated: 2/15/17, 7:51 AM