I'm scratching my head on a problem with domains o_O Hope someone can help 
me:

Let's say I have a field like this:

    leader = fields.Many2One('res.user', 'leader', domain=mydomain)

and I would like 'mydomain' to limit users to those belonging to a group. 
It would look like this:

    mydomain = [('groups', 'contains', Id('sale', 'group_sale'))]
    but operator "contains" is not implemented 

so I tried:

    mydomain = [('groups', 'child_of', Id('sale', 'group_sale'), 'user')] 
according to documentation 
http://doc.tryton.org/2.4/trytond/doc/topics/domain.html?highlight=child_of#child-of
    but it's a many2many with relations on a third table so I think 
documentation is wrong ? 


Does anybody know how to write mydomain to get the expected result ?

-- 
[email protected] mailing list

Reply via email to