Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3436 มุมมอง

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง

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

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 25
1484
0
ส.ค. 25
1459
2
เม.ย. 23
25797
0
ธ.ค. 20
3308
2
มิ.ย. 20
17883