Skip to content

Commit

Permalink
fix(Shift Location): fetch geolocation
Browse files Browse the repository at this point in the history
  • Loading branch information
krantheman committed Oct 21, 2024
1 parent 5876998 commit a5bf6b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hrms/hr/doctype/shift_location/shift_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@

class ShiftLocation(Document):
def validate(self):
self.set_geolocation()

@frappe.whitelist()
def set_geolocation(self):
set_geolocation_from_coordinates(self)

0 comments on commit a5bf6b8

Please sign in to comment.