Le 26/08/2015 11:32, Jean Cavallo a écrit :

Le 26 août 2015 11:31, Pascal Obstetar <pascal.obste...@gmail.com <mailto:pascal.obste...@gmail.com>> a écrit :

    domain=[('classe', 'in',
    If(Eval('listesessioncompartiment_typinv', 0) == 88,
    ['Reptilia','Amphibia']))]

    le serveur me met une erreur de type !


If prend trois paramètres : If(condition, valeur si True, valeur si False)

Jean Cavallo
/Coopengo/

/En effet il manquait juste le false avec /ceci ça marche:
domain=[('classe', 'in', If(Eval('listesessioncompartiment_typinv', 0) == 88, ['Reptilia','Amphibia'], ['']))]

Répondre à