Update frappe/model/delete_doc.py
This commit is contained in:
parent
24a8b03639
commit
5bb489c637
1 changed files with 1 additions and 1 deletions
|
|
@ -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"):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue