Skip to content

Commit

Permalink
Merge pull request #2317 from frappe/fix-fetch-geolocation-for-shift-…
Browse files Browse the repository at this point in the history
…location
  • Loading branch information
krantheman authored Oct 21, 2024
2 parents 5876998 + a5bf6b8 commit f4fc26a
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 f4fc26a

Please sign in to comment.