Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3441 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit

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

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

Related Posts Odpovědi Zobrazení Aktivita
1
bře 25
1487
0
srp 25
1462
2
dub 23
25811
0
pro 20
3318
2
čvn 20
17894