Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
5474 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 15
5910
5
พ.ค. 24
25094
1
ต.ค. 22
4238
5
ก.ย. 22
11595
1
ก.พ. 22
26066