Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2060 Lượt xem

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 ?

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

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

Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 24
5046
0
thg 3 24
1808
2
thg 12 23
3430
1
thg 5 23
5928
0
thg 8 21
2603