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

I have a model with a partner id in it. There is a list view accessible from a menu which also appears in the portal. What is the recommended way to show employees all records (and include a partner_id column), but portal users only their own records (hiding the partner_id column for them). 

아바타
취소
작성자

@Jordi: thank you. Did not know it would be so easy. For portal users, how would I restrict the list to show only their records? Do I use filter_domain, domain, or force_domain?

작성자

Sorry, I meant 'domain_force'. Something I found while grepping the odoo sources.

베스트 답변

Hi Ron,

In that case you should make sure that the 'partner_id' field in your view definition has the the following attribute and value:

groups="base.group_user" 

This will restrict this field to appear only for employees.

Portal users belong to a group "Portal" that does not include the group "Employees".

Regards,

Jordi Ballester

www.eficent.com

아바타
취소
관련 게시물 답글 화면 활동
1
9월 23
5533
0
3월 21
2892
1
3월 18
6804
2
8월 25
3011
2
7월 25
1761