Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
15253 Vizualizări

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

Imagine profil
Abandonează

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 ?

Cel mai bun răspuns

Vaibhav,

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

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

Thanks.

Imagine profil
Abandonează
Autor

Thanks...:)

Related Posts Răspunsuri Vizualizări Activitate
1
dec. 22
6300
1
iun. 19
2517
1
dec. 18
2708
1
apr. 17
4816
2
dec. 23
19989