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

In our portal we offer access to our customers from different companies. We would like to only show our customers in the portal issues and documents they should see. This should include attachments mentioned anywhere in issues they have access to, as well as attachments uploaded and associated with that company's partner_id. We tried doing this both with record level access on ir.attachment or with the Domain on the Window Action.

For example:

['|', '|', 
 ('partner_id', '=', user.partner_id.id),   
 ('partner_id.child_ids', 'in', [user.partner_id.id]),  
 ('partner_id.parent_id.child_ids', 'in', [user.partner_id.id]),

]

This works fine for the listing of all documents but does not include documents posted by a different company on an issue where the customer has access to.

Any thoughts?

아바타
취소
관련 게시물 답글 화면 활동
1
3월 15
3993
7
5월 24
93198
0
2월 21
2072
1
10월 17
3460
1
12월 16
4250