Skip to Content
Menu
This question has been flagged
1 Atsakyti
15255 Rodiniai

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

Portretas
Atmesti

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

Autorius

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.

Portretas
Atmesti
Autorius

Thanks...:)

Related Posts Replies Rodiniai Veikla
1
gruod. 22
6301
1
birž. 19
2519
1
gruod. 18
2708
1
bal. 17
4817
2
gruod. 23
19989