Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
12263 มุมมอง
  • 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.
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
พ.ค. 25
2513
2
พ.ค. 25
5875
1
มี.ค. 25
1693
4
มี.ค. 25
4489
3
ก.พ. 25
5492