Odoo Help


Domain on user_id, res_users based on relation

on 4/24/13, 8:23 AM 2,006 views

Hello to everybody,

I have a field, in a custom module, like: 'user_ids': fields.many2one('res.users', 'User')

I need this field contains only users belonging to a certain group, for example test, but I don't know how set the domain for this kind of relation.

anybody could help me? Thanks in advance


in action part do like this <filed name="domain">'id','=',uid</field>

on 4/24/13, 11:28 AM

Thanks for the anserws, i have tried but it doesn't work properly. At the moment i am looking for another way to do that.

on 5/7/13, 7:32 AM
Ethan Furman
On 6/28/13, 6:03 PM

On OpenERP 7.0 (and perhaps earlier) in the ir.actions.act_window record, you want a line similar to:

<field name="domain">[('id','=',uid)]</field>

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/24/13, 8:23 AM
Seen: 2006 times
Last updated: 3/16/15, 8:10 AM