İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
8976 Görünümler

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

Avatar
Vazgeç

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

Üretici

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.

En İyi Yanıt

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>
Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Ağu 15
6016
5
May 24
25264
5
Eyl 22
11730
1
Şub 22
26200
1
Nis 24
13819