Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
2001 Vistas

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 ?

Avatar
Descartar
Autor Mejor respuesta

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

Avatar
Descartar
Mejor respuesta

Hi,

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

Thanks

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
feb 24
4956
0
mar 24
1729
2
nov 23
3340
1
may 23
5750
0
ago 21
2529