تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
15146 أدوات العرض

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

الصورة الرمزية
إهمال

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

الكاتب

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 ?

أفضل إجابة

Vaibhav,

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

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

Thanks.

الصورة الرمزية
إهمال
الكاتب

Thanks...:)

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
ديسمبر 22
6177
1
يونيو 19
2418
1
ديسمبر 18
2563
1
أبريل 17
4708
Using search count تم الحل
2
ديسمبر 23
19833