fix(minor): update routes

This commit is contained in:
Rushabh Mehta
2020-11-18 15:00:34 +05:30
parent dc1e240642
commit 542bc01718
38 changed files with 68 additions and 69 deletions

View File

@@ -211,7 +211,7 @@ def get_doc_condition(doctype):
def throw_overlap_error(doc, exists_for, overlap_doc, from_date, to_date):
msg = _("A {0} exists between {1} and {2} (").format(doc.doctype,
formatdate(from_date), formatdate(to_date)) \
+ """ <b><a href="#Form/{0}/{1}">{1}</a></b>""".format(doc.doctype, overlap_doc) \
+ """ <b><a href="/app/Form/{0}/{1}">{1}</a></b>""".format(doc.doctype, overlap_doc) \
+ _(") for {0}").format(exists_for)
frappe.throw(msg)