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

I wanna create a "domain_force" with a complex condition (with me). That is a sale person can read, update (write) but not delete records of an other sale person if the in a team. And delete permission will be available only for own records

my code (need to update):

Verify team sale['|', '|', ('user_id', '=', user.id), ('team_id.user_id', '=', user.id),('team_id.member_ids', '=', user.id)]  

I need your help because I don't really understand '|', '&', '&amp'. Thank you so much

아바타
취소
베스트 답변

Hi,

Create a new record rule for sales user group and add domain force like this. So the user can see his own team members orders.


Regards

아바타
취소
관련 게시물 답글 화면 활동
1
2월 24
2307
1
10월 21
2895
9
9월 21
18594
1
3월 15
4624
0
3월 15
4016