Hi!
I am developing a module on OpenERP 7.0 to manage requests. Each request may (or may not) have an owner. The owner of a request belongs to some group and in a given moment he might want to give away his request to some other user in the same group. My question goes precisely in that direction. Having to select a user from res.users, how do I narrow his search possibilities to the users that belong to the same group?
Thanks in advance.
______________________
A little edit to thank René for is answer (comments still not working!) and to add some info.
I tried this but it didn't work for me (i'm opening a wizard that shows a dropdown menu to select a user from it, and I was trying to show the user only other users that belong to his group with a domain rule based on your sugestion.
<field name="assign_to" string="Assign to" domain="[('groups_id', 'in', [user.groups_id])]" />
But it says that "user" is not a valid global variable...
-------
Thanks for that addicional tip, I already had tried it out, but it gave me a js error: Uncaught Error: AttributeError: object has no attribute 'groups_id'
I guess, I'll leave it this way (alowing them to search all) and pray that my users aren't stupid enough to give requests to other users that don't have permission to access them! :)