How to set leave approver as the person whom the employee reports to?

I want to autofill the field of leave approver in employee doctype as the person whom the employee reports to .

Use Server Script to copy the data from Reports To field to Leave Approver field, this will work for you but, this will be applied to every Employee after it has been enabled unless you provide some filter values.

I tried to do it from fetch from and it worked for me . Though thankyou for giving your valuable time.

1 Like