Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
8892 Zobrazení

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
Zrušit

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.

Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
srp 15
5968
5
kvě 24
25174
5
zář 22
11674
1
úno 22
26139
1
dub 24
13742