Hi,

Le 30/12/09 23:47, [email protected] a écrit :
> Hi.
>
> I struggle with the syntax of domain for Directories in DMS. Sorry I'm new to 
> phyton syntax.
>
> I have [('name','=','ProductName1')] which works well.
>
> Now I want to expand the domain to contain both 'ProductName1' and 
> 'ProductName2'.
>
> I have tryed [('name','in',['ProductName1','ProductName2'])] which does not 
> work. What's the correct syntax?
>

I found that blog entry that explain some enhancements for domain syntax 
: a polish notation :
http://christophe-simonis-at-tiny.blogspot.com/2008/08/new-new-domain-notation.html
It's the only place where this is explained !!!

So maybe you can try :
['|', ('name','=','ProductName1'), ('name','=','ProductName2')]


Michel
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to