- 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.
此问题已终结
1
回复
14319
查看
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
| 相关帖文 | 回复 | 查看 | 活动 | |
|---|---|---|---|---|
|
|
1
10月 25
|
3557 | ||
|
|
4
10月 25
|
6528 | ||
|
|
2
9月 25
|
4808 | ||
|
|
3
4月 26
|
10995 | ||
|
|
0
8月 25
|
3280 |