İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
15243 Görünümler

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
Vazgeç

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

Üretici

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 ?

En İyi Yanıt

Vaibhav,

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

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

Thanks.

Avatar
Vazgeç
Üretici

Thanks...:)

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Ara 22
6295
1
Haz 19
2513
1
Ara 18
2702
1
Nis 17
4812
2
Ara 23
19984