send_to_erpnext('HR-EMP-00004', datetime.datetime.now(), 'HO1', 'IN') ^ The mistake was here |
I put employee id insted of attendance device id. it is created in HR/Employee/Name of the Employee/Attendances and Leaves/