콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3457 화면

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)]

관련 게시물 답글 화면 활동
1
3월 25
1517
0
8월 25
1491
2
4월 23
25869
0
12월 20
3343
2
6월 20
17946