跳至内容
菜单
此问题已终结
2 回复
2086 查看

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

形象
丢弃
相关帖文 回复 查看 活动
1
2月 24
5076
0
3月 24
1838
2
12月 23
3481
1
5月 23
5984
0
8月 21
2652