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

Hi there, I'm looking for a proper record rule for the following case:

User can access his own entry in contacts & user can acces his companies' entry in contacts & user can access his own user profile WITH the functions to change the language and password.

This is what I currently have:

['|', ('type', '!=', 'private'), ('type', '=', False), ('user_ids','in', user.id)]

This user is able to see just his entry in contacts BUT can't properly open the form view on click (...not allowed to access res\.partner\.\.\.record:Administrator\)\ and\ he\ CAN'T\ open\ my\ profile\ under\ the\ top\ right\ user\ icon,\ instead\ gets\ a\ warning\ \(\.\.\.not\ allowed\ to\ access\ res.partner...record:company id)...

SO I guess I have to extend my record rule? Any help is appreciated

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

try to check these egzamples https://odootricks.tips/about/building-blocks/security/record-rules/

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ม.ค. 24
3216
0
ม.ค. 24
1551
0
ธ.ค. 20
2094
1
ก.ย. 19
4878
0
มิ.ย. 17
3138