跳至內容
選單
此問題已被標幟
1 回覆
12267 瀏覽次數
  • 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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
4
5月 25
2520
2
5月 25
5885
1
3月 25
1694
4
3月 25
4492
3
2月 25
5496