Skip to Content
Menu
This question has been flagged
2 Replies
2053 Rodiniai

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 ?

Portretas
Atmesti
Autorius Best Answer

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

Portretas
Atmesti
Best Answer

Hi,

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

Thanks

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
vas. 24
5032
0
kov. 24
1798
2
gruod. 23
3424
1
geg. 23
5915
0
rugp. 21
2598