Skip to Content
Menú
This question has been flagged
1 Respondre
15240 Vistes

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 [ ] ?

Avatar
Descartar

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

Autor

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 ?

Best Answer

Vaibhav,

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

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

Thanks.

Avatar
Descartar
Autor

Thanks...:)

Related Posts Respostes Vistes Activitat
1
de des. 22
6293
1
de juny 19
2512
1
de des. 18
2699
1
d’abr. 17
4811
2
de des. 23
19984