Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
8880 Visualizações

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
Cancelar

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.

Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
ago. 15
5936
5
mai. 24
25161
5
set. 22
11665
1
fev. 22
26109
1
abr. 24
13710