Description
We are facing an issue with the Reports To functionality in the Employee Doctype.
When an employee is assigned to a Team Lead using the Reports To field, the employee is not appearing under the Team Lead’s profile, even though the Reports To field is correctly configured.
Problem 1
When Abhinav is assigned as the Reports To for an employee, the employee is not listed under Abhinav’s profile.
Abhinav is the Team Lead, and the employee’s Reports To field is correctly set to Abhinav.
Expected Result:
The employee should appear under Abhinav’s employee/team list.
Actual Result:
The employee is not displayed under Abhinav’s profile.
Problem 2
For Mohan, the Reports To field is assigned to his Team Lead, Ibrahim.
However, Mohan is not appearing under Ibrahim’s profile.
At the same time, other employees who have Ibrahim assigned as their Reports To are correctly listed under Ibrahim’s profile.
Expected Result:
Mohan should also be displayed under Ibrahim’s profile along with the other employees reporting to him.
Actual Result:
Mohan is missing from Ibrahim’s employee/team list, even though the Reports To field is correctly assigned.
Steps to Reproduce
-
Open the Employee Doctype.
-
Open an employee’s Employee record.
-
Set the Reports To field to the respective Team Lead.
-
Save the Employee record.
-
Open the Team Lead’s profile.
-
Check the employees listed under the Team Lead.
-
The employee with the Reports To assignment is not displayed.
Additional Information
-
The issue is occurring only for certain employees.
-
Other employees with the same Team Lead are displayed correctly.
-
The Reports To field is correctly assigned in the Employee record.
-
Screenshots of the Employee records and Team Lead profile can be provided.
Expected Behaviour
All employees whose Reports To field is assigned to a particular Team Lead should be consistently displayed under that Team Lead’s profile.
ERPNext / Frappe Version
Frappe Framework Version
frappe: 16.28.0 (HEAD)
Visit Frappe Support Portal
Installed Apps
ERPNext
erpnext: 16.29.0 (HEAD)
Winner Holistic
winner_holistic: 0.0.1 (HEA