Skip to Content
Menu
This question has been flagged
1 Atsakyti
8956 Rodiniai

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

Simone

Portretas
Atmesti

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

Autorius

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.

Best Answer

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>
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
rugp. 15
5990
5
geg. 24
25239
5
rugs. 22
11708
1
vas. 22
26178
1
bal. 24
13798