コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
15237 ビュー

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
6292
1
6月 19
2512
1
12月 18
2693
1
4月 17
4807
2
12月 23
19983