Em 18/03/2014 17:07, Cédric Krier escreveu:
On 18 Mar 16:06, Iasmini - Gmail wrote:
Hi,
I created a new boolean field 'technician' on res.group and I want to
fill a Many2One field with all users that are members of groups wich
has this flag cheched.
technician = fields.Many2One('res.user', 'Technician',
required=False, domain = [(???)])
How do I do this domain?
Normally:
[('groups.technician', '=', True)]
It's easier than I thought. I thought I would have to do the
relationship res.user with res.user_res.group and then with res.group.
Thank you!
--
Iasmini Gomes
Sílex Sistemas
www.silexsistemas.com.br
---
Este email está limpo de vírus e malwares porque a proteção do avast! Antivírus
está ativa.
http://www.avast.com