I have added a fields in a hr.deparment model, which is many2many with hr.employee with name reporting_manager_ids.
Then applied a rule on hr.employee model to show employee own record only. Rule is mention below.
[('user_id','=',user.id)]
My question is that there is already a field name manager_id in hr.department, which is many2one with hr.employee and when a normal employee( user with group Employee of Hr Module ) trying to view department in their employee record he is not able to see reporting_manager_ids values because this field contains hr.employee records, but he can see the value of manager_id field that also contains hr.emolyee records. Why?
Please guide me and suggest me a solution to show the employee record in reporting_manager_ids. Employee can only see this field.
Thank you in advance.