You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, the leave approver may not be the same for an employee, for example: If a certain leave type is selected the leave approver may get changed. Now if we update the leave approver and save the document. After saving, when you open the document, it will show Not Saved status indicator.
This happens because the leave approver was changed based on the condition while saving the document, but the make_dashboard function updates the leave approver based on the employee record.
Information about bug
Problem
leave type
is selected the leave approver may get changed. Now if we update the leave approver and save the document. After saving, when you open the document, it will showNot Saved
status indicator.make_dashboard
function updates the leave approver based on the employee record.make_dashboard
and again by the on change of anemployee
.https://github.com/frappe/hrms/blob/develop/hrms/hr/doctype/leave_application/leave_application.js#L67
https://github.com/frappe/hrms/blob/develop/hrms/hr/doctype/leave_application/leave_application.js#L134
Solution
make_dashboard
function.Screen.Recording.2024-05-09.at.10.28.02.AM.mov
Module
HR
Version
Frappe : v15.24.1
ERPNext : v15.22.2
Hrms : v15.20.2
Installation method
manual install
Relevant log output / Stack trace / Full Error Message.
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: