Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
12279 Vues
  • Employees should only view tasks related to their assigned projects.
  • They should not be able to create, edit, or delete projects.
  • Employees must be able to edit their assigned tasks but should not be allowed to create or delete tasks.
Avatar
Ignorer
Meilleure réponse

You have to update your record rules like this:

1️⃣ Rule: Employees can only view tasks related to their assigned projects: 
Model -  project.task
Domain - ['|', ('project_id.user_id', '=',
user.id), ('project_id.privacy_visibility', '!=', 'employees')]
Permission - Read



2️⃣Rule: Employees should not be able to create, edit, or delete projects:
Model - project.project
Domain - []
Permission - Read


3️⃣ Rule: Employees can edit their assigned tasks but cannot create or delete tasks:
Model - project.task
Domain - [('user_id', '=',
user.id)]
Permission - Read, Write

Avatar
Ignorer
Publications associées Réponses Vues Activité
4
mai 25
2542
2
mai 25
5924
1
mars 25
1703
4
mars 25
4531
3
févr. 25
5533