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

Hi all,

I am trying to search a employee with its 'id', but it's not working. Actually the employee is 'inactive'.

So anyone have an idea how to search the inactive employee record?

self.pool.get('hr.employee').search(cr, uid, [('id','=',4562)])


아바타
취소
베스트 답변

you can add one more condition as ('active','=', False) in search.

아바타
취소
작성자

Ajeet can you close this question? I don't have enough karma.

베스트 답변

Dear Jinesh,

Try to add on search domain :

('active','=',False)

I hope I helped you ...

아바타
취소
관련 게시물 답글 화면 활동
0
3월 15
3931
2
3월 15
5763
1
7월 25
817
Search a message 해결 완료
1
2월 25
1445
0
9월 23
2401