콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
9047 화면

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>
아바타
취소
관련 게시물 답글 화면 활동
1
8월 15
6061
5
5월 24
25344
5
9월 22
11860
1
2월 22
26280
1
4월 24
13978