mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-21 18:36:30 +00:00
perf: Skip link checking on repost's remove_attached_file (#45061)
This is internal detail, doesn't need to do horrible link checks in
framework.
(cherry picked from commit 4f690affc9)
Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
@@ -342,7 +342,7 @@ def remove_attached_file(docname):
|
|||||||
if file_name := frappe.db.get_value(
|
if file_name := frappe.db.get_value(
|
||||||
"File", {"attached_to_name": docname, "attached_to_doctype": "Repost Item Valuation"}, "name"
|
"File", {"attached_to_name": docname, "attached_to_doctype": "Repost Item Valuation"}, "name"
|
||||||
):
|
):
|
||||||
frappe.delete_doc("File", file_name, ignore_permissions=True, delete_permanently=True)
|
frappe.delete_doc("File", file_name, ignore_permissions=True, delete_permanently=True, force=True)
|
||||||
|
|
||||||
|
|
||||||
def repost_sl_entries(doc):
|
def repost_sl_entries(doc):
|
||||||
|
|||||||
Reference in New Issue
Block a user