diff --git a/hrms/hr/doctype/shift_location/shift_location.py b/hrms/hr/doctype/shift_location/shift_location.py index c9c94627df..1f892b5da2 100644 --- a/hrms/hr/doctype/shift_location/shift_location.py +++ b/hrms/hr/doctype/shift_location/shift_location.py @@ -9,4 +9,8 @@ class ShiftLocation(Document): def validate(self): + self.set_geolocation() + + @frappe.whitelist() + def set_geolocation(self): set_geolocation_from_coordinates(self)