Update frappe/model/delete_doc.py

This commit is contained in:
Himanshu 2020-04-16 10:06:41 +05:30 committed by GitHub
parent 24a8b03639
commit 5bb489c637
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -210,7 +210,7 @@ def check_permission_and_not_submitted(doc):
# check if submitted
if doc.docstatus == 1:
frappe.msgprint(_("{0} {1}: Submitted Record cannot be deleted. You must <a href='https://docs.erpnext.com//docs/user/manual/en/setting-up/articles/delete-submitted-document' target='_blank'>Cancel</a> it first.").format(_(doc.doctype), doc.name),
frappe.msgprint(_("{0} {1}: Submitted Record cannot be deleted. You must {2} Cancel {3} it first.").format(_(doc.doctype), doc.name, "<a href='https://docs.erpnext.com//docs/user/manual/en/setting-up/articles/delete-submitted-document' target='_blank'>", "</a>"),
raise_exception=True)
def check_if_doc_is_linked(doc, method="Delete"):