Suppose I have 3 users which are as follows:
user_employee having access rights Human Resource /Employee group
user_officer having access rights Human Resource /officer group
user_manager having access rights Human Resource /manager group
For object hr_employee(hr.employee)
If I am logged in as user_manager
or user_officer
I can create/edit my own employee record. If I am logged in as user_employee
I cannot edit my own employee record.
Then I gave write permission to Human Resource/Employee group and now I can edit all fields which are related to hr_employee
, but I want to restrict edit access to users which are under Human Resource/Employee group to certain fields; for example if user_employee
is logged in then he is not able to edit department_id
or related_user
, or coach_id
, active
, manager
, etc.
He can edit just his name, address, DOB, and other public information.
How can I solve this issue with security folder files like .xml
or .csv
files?