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
- Księgowość
- Zapasy
- PoS
- Projekt
- MRP
To pytanie dostało ostrzeżenie
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się