How To Remove Delete Employee Permission From Specific User
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
Hi,
You have to adjust the existing access rights in the db such a way that a new user group will be introduced and that group will have only read, write and create permission. Instead of above approach is you can raise validation error from the code side by inheriting the unlink method or by using an automated action from the db.
* Create a group, lets say "Block Employee Deletion"
* From unlink method check if user is part of the group and if yes, raise validation error
OR
* From automated action, which triggers on deletion, do the same checking and raise error
Thanks
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up