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

Hello,

I have override search method and I wanted to filter out sales Order with following Condition. Condition / search criteria :

       [ state ='RESERVED' OR (state ='SHIPPED' AND avail='YES') AND invoiced='YES']

How to give above condition in following search method.?

  <obj_name>.search(cr, uid, [])

what are contents of [ ] ?

아바타
취소

What do you mean with avail='YES'? Is this a custom field?

작성자

yes avail is custom field having selection type with values YES or NO, but i am confused that how to write OR AND conditions in search method ?

베스트 답변

Vaibhav,

[ state ='RESERVED' OR (state ='SHIPPED' AND avail='YES') AND invoiced='YES']

should be: [(invoiced =Yes),'|',(state=reserved),(state ='SHIPPED'),(avail='YES')]

Thanks.

아바타
취소
작성자

Thanks...:)

관련 게시물 답글 화면 활동
1
12월 22
6365
1
6월 19
2564
1
12월 18
2776
1
4월 17
4902
Using search count 해결 완료
2
12월 23
20055