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

I've set an access rule on partner object for the group "external salesman". I want the same thing than "see own leads" but for partners. This is the domain rule:

['|','|',('user_id','=',user.id),('user_ids','in',user.id),('parent_id','=',1)] They can see partners where they are salesperson, themselves and all the employee of the company.

but I have 2 problem:

-some partners are visible on kanban view but not in form view.

-In calendar menu I can't see the attendees option: when I click on the select box I 've an error message "you don't have permissions Read on object Partner." But if I start to write the name of one of my partner it's ok.

아바타
취소
작성자 베스트 답변

After some research I found this domain expression :

['|',['user_id', '=', user.id], ['parent_id', 'child_of', ['Company_Name']]]

And that does what I want.

But I don't understand ['parent_id', 'child_of', ['Company_Name']]! If you could explain me.

아바타
취소
베스트 답변

hi,

try it,domain:['|',('user_id', '=', user.id), ('user_id','=' False)]

아바타
취소
베스트 답변
fffffdfddrftgf
아바타
취소
작성자

It's not an answer.

관련 게시물 답글 화면 활동
1
8월 15
6257
5
5월 24
25583
1
10월 22
4662
5
9월 22
12127
1
2월 22
26451