Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
12604 Zobrazení
  • 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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
zář 25
1386
4
zář 25
6387
0
srp 25
637
4
kvě 25
3111
2
kvě 25
6532