Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
15274 Vues

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
Ignorer

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

Auteur

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 ?

Meilleure réponse

Vaibhav,

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

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

Thanks.

Avatar
Ignorer
Auteur

Thanks...:)

Publications associées Réponses Vues Activité
1
déc. 22
6311
1
juin 19
2528
1
déc. 18
2731
1
avr. 17
4835
2
déc. 23
20004