İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3568 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç

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

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Mar 25
1900
0
Ağu 25
1810
2
Nis 23
26568
0
Ara 20
3724
2
Haz 20
18433