跳至內容
選單
此問題已被標幟
1 回覆
15264 瀏覽次數

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
6304
1
6月 19
2522
1
12月 18
2714
1
4月 17
4822
2
12月 23
19990