Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
12809 Tampilan
  • 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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
4
Okt 25
2902
2
Sep 25
1842
4
Sep 25
6954
0
Agu 25
886
4
Mei 25
3641