Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
8886 Vizualizări

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

Imagine profil
Abandonează

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

Autor

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.

Cel mai bun răspuns

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>
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
aug. 15
5959
5
mai 24
25166
5
sept. 22
11671
1
feb. 22
26128
1
apr. 24
13737