Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
8875 Vues

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
Ignorer

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

Auteur

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.

Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
août 15
5934
5
mai 24
25159
5
sept. 22
11657
1
févr. 22
26101
1
avr. 24
13704