In Odoo 17 I am working on the Project and Timesheets Module, I want to add permissions that a user is only able to view the Project /Task assigned to him/her and is not able to view the tasks that are assigned to other users, also the person that is assigned a task I also want to give him limited access like he cannot edit or delete or update his assigned task. So would I be able to achieve this? What are the specific record rules that I would add manually for my requirement as I am using Odoo Online
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kirjanpito
- Varastointi
- PoS
- Project
- MRP
Tämä kysymys on merkitty
Hello Muhammad Zaeem Mohzar,
Here’s how you can set it up:
1) Create Record Rules :
For Tasks:
Go to Settings > Technical > Security > Record Rules.
Create a new record rule for the project.task model:
Name: Tasks assigned to user
Object: project.task
Domain: [('user_id', '=', user.id)]
Apply for: (select the relevant user group, e.g., Employees or a custom group)
Perms Read: Checked
Perms Write: Unchecked
Perms Create: Unchecked
Perms Unlink: Unchecked
For Projects:
Go to Settings > Technical > Security > Record Rules.
Create a new record rule for the project.project model:
Name: Projects assigned to user
Object: project.project
Domain: [('user_id', '=', user.id)]
Apply for: (select the relevant user group, e.g., Employees or a custom group)
Perms Read: Checked
Perms Write: Unchecked
Perms Create: Unchecked
Perms Unlink: Unchecked
2) Create Access Control Lists (ACLs)
define what operations a user can perform on a particular model.
You can set up ACLs to restrict users from editing or deleting tasks.
Go to Settings > Technical > Security > Access Control Lists.
Create a new ACL for the project.task model:
Name: Task - Read Only
Object: project.task
Group: (select the relevant user group, e.g., Employees or a custom group)
Read Access: Checked
Write Access: Unchecked
Create Access: Unchecked
Delete Access: Unchecked
3) Assign Users to Groups
Make sure the users are assigned to the correct groups that have the appropriate record rules and ACLs applied.
Hope this helps.
If you need any help in customization feel free to contact us.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
Nautitko keskustelusta? Älä vain lue, vaan osallistu!
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
RekisteröidyAiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
---|---|---|---|---|
|
2
heinäk. 24
|
1161 | ||
|
1
heinäk. 24
|
1415 | ||
|
0
helmik. 24
|
1238 | ||
|
0
marrask. 24
|
1956 | ||
|
1
kesäk. 23
|
3169 |