Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
8891 Представления

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
5968
5
мая 24
25169
5
сент. 22
11672
1
февр. 22
26137
1
апр. 24
13742