Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
8897 Переглядів

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

Аватар
Відмінити

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

Автор

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.

Найкраща відповідь

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>
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
серп. 15
5973
5
трав. 24
25187
5
вер. 22
11686
1
лют. 22
26149
1
квіт. 24
13752