Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3443 Vues

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
Ignorer
Meilleure réponse

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
Ignorer

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

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

Publications associées Réponses Vues Activité
1
mars 25
1491
0
août 25
1466
2
avr. 23
25817
0
déc. 20
3322
2
juin 20
17903