Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
12256 Visninger
  • 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
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
4
maj 25
2511
2
maj 25
5868
1
mar. 25
1689
4
mar. 25
4476
3
feb. 25
5481