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

Hello,


How can I implement a rule for a user id to see only the records that he is assigned to but also the records that are in new state but not assigned to anyone.


My code so far will :



Own complaints

['|', ('state', 'in', ['new']), ('technician', '=', user.id)]

Odoo 13 CE.


Thank you !

아바타
취소
베스트 답변

Try this

['|', '&', ('state', 'in', ['new']), ('technician', '=', False), ('technician', '=', user.id)]
아바타
취소
작성자

I tried you way before but the conditions were not in the correct order and did not work.

Now it works like a charm. Thank you !

관련 게시물 답글 화면 활동
5
9월 20
12981
2
3월 15
7703
0
3월 15
4152
1
3월 15
5494
0
3월 15
4352