跳至内容
菜单
此问题已终结
1 回复
15257 查看

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
6302
1
6月 19
2520
1
12月 18
2709
1
4月 17
4818
2
12月 23
19989