Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
8928 Näkymät

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
Hylkää

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

Tekijä

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.

Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
elok. 15
5980
5
toukok. 24
25217
5
syysk. 22
11695
1
helmik. 22
26159
1
huhtik. 24
13769