From a5bf6b8de8e53970684e850af524841605e6b7e9 Mon Sep 17 00:00:00 2001 From: krantheman Date: Mon, 21 Oct 2024 14:34:14 +0530 Subject: [PATCH] fix(Shift Location): fetch geolocation --- hrms/hr/doctype/shift_location/shift_location.py | 4 ++++ 1 file changed, 4 insertions(+) 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)