fix throw_overlap_error in Shift Assignment (#15103)
fix throw_overlap_error in Shift Assignment
diff --git a/erpnext/hr/doctype/shift_assignment/shift_assignment.py b/erpnext/hr/doctype/shift_assignment/shift_assignment.py
index ace9cb8..48d4e57 100644
--- a/erpnext/hr/doctype/shift_assignment/shift_assignment.py
+++ b/erpnext/hr/doctype/shift_assignment/shift_assignment.py
@@ -38,7 +38,7 @@
def throw_overlap_error(self, d):
msg = _("Employee {0} has already applied for {1} on {2} : ").format(self.employee,
d['shift_type'], formatdate(d['date'])) \
- + """ <b><a href="#Form/Shift Request/{0}">{0}</a></b>""".format(d["name"])
+ + """ <b><a href="#Form/Shift Assignment/{0}">{0}</a></b>""".format(d["name"])
frappe.throw(msg, OverlapError)
@frappe.whitelist()
@@ -77,4 +77,4 @@
"docstatus": d.docstatus
}
if e not in events:
- events.append(e)
\ No newline at end of file
+ events.append(e)