Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
15136 Prikazi

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
Opusti

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

Avtor

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
Opusti
Avtor

Thanks...:)

Related Posts Odgovori Prikazi Aktivnost
1
dec. 22
6168
1
jun. 19
2410
1
dec. 18
2558
1
apr. 17
4702
2
dec. 23
19819