Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
15239 Widoki

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

Awatar
Odrzuć

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 ?

Najlepsza odpowiedź

Vaibhav,

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

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

Thanks.

Awatar
Odrzuć
Autor

Thanks...:)

Powiązane posty Odpowiedzi Widoki Czynność
1
gru 22
6293
1
cze 19
2512
1
gru 18
2699
1
kwi 17
4811
2
gru 23
19984