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

In a model, I have a many2many relation.

In a rule, I need to filter access for users that exist in that many2many


I've tried:

['|','|',('employee_id.user_id.id','=',user.id),('employee_id.user_id.id','in',[x.id for x in user.project_members]),('project_manager_ids','in',[user.id])]


But it doesn't work


I've also tried ...

('project_manager_ids','=',[user.id]) - no success either


Can we use - in a domain -, a many2many field in the left side?

아바타
취소
작성자 베스트 답변

('project_manager_ids','in',[user.id]) is the right way to do it


There just a bug somewhere else that was preventing things from working properly

아바타
취소
관련 게시물 답글 화면 활동
0
11월 22
80
1
7월 21
2708
1
7월 21
4118
9
2월 16
49134
1
10월 15
10684