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

Hello folks,


I want to prevent a specific internal user from seing other people’s agenda.

Can’t find out how to do this.


Any idea ?

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Hi,

thanks. In the video it requires to change the .pyc files, which is not suitable for the Odoo 14 entreprise version.

However I managed to do it this way :

- created a record rule
- model = calendar.event
- domain = ['|', ['partner_ids.child_ids', 'in', [user.partner_id.id]], ['partner_ids', 'in', [user.partner_id.id]]]

It works.

Thanks

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

Hi,

For this you can set a record rule for corresponding model. To know more about record rules, see: Odoo Record Rules

Thanks

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 24
5050
0
มี.ค. 24
1812
2
ธ.ค. 23
3431
Meetings and Minutes แก้ไขแล้ว
1
พ.ค. 23
5935
0
ส.ค. 21
2611