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

There is a record rule for model “Contact” that separates contact books for each company:

​['|','|',('company_id.child_ids','child_of',[user.company_id.id]),('company_id','child_of',[user.company_id.id]),('company_id','=',False)]

And now if I’m a user with current company “A” I can see only contact info for users with current company “A”. 

I would like to change it so that if I’m a user with current company “A” I can see contact info of all the users that have company “A” in theirs Allowed company (rather that only current company).

How do I do this? As far as I can see Contact model does not hold information about Allowed companies and have only current company.

아바타
취소
베스트 답변

Hello Andrzej,


You can user the following domain in record rule:

[('company_id', 'child_of', user.company_ids.ids)]

 Hope it will helpful for you


Thanks and regards

Haresh Kansara 

아바타
취소
관련 게시물 답글 화면 활동
0
7월 23
207
1
4월 22
2818
4
12월 23
23454
0
11월 19
4150
0
8월 19
3477