Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
15259 Переглядів

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...:)

Related Posts Відповіді Переглядів Дія
1
груд. 22
6302
1
черв. 19
2520
1
груд. 18
2709
1
квіт. 17
4820
Using search count Вирішено
2
груд. 23
19989