Skip to Content
Menú
This question has been flagged
1 Respondre
3434 Vistes

Hi,

I would like to implement the following scenario.

  • User must be able to see all the records and should be able to edit only his own records

Is it possible to do it in openerp 7 and if possible how to do it?

Avatar
Descartar
Best Answer

You can define Access Rights to your Object as readonly (disable write and delete access). And define Record Rules for your Object with full access, but with domain:

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

So, to all user will apply Access Rights and if user in domain then also apply Record Rules.

Avatar
Descartar

What is the meaning of this filter code? I do not understand.

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

Related Posts Respostes Vistes Activitat
1
de març 25
1483
0
d’ag. 25
1458
2
d’abr. 23
25796
0
de des. 20
3307
2
de juny 20
17882