mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-19 09:28:46 +00:00
Update erpnext/utilities/__init__.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
@@ -28,7 +28,7 @@ def clear_logs_with_references(doctype, filters):
|
||||
pluck="name",
|
||||
)
|
||||
if attached_files:
|
||||
frappe.delete_doc("File", attached_files, ignore_permissions=True)
|
||||
frappe.delete_doc("File", attached_files, ignore_permissions=True, delete_permanently=True)
|
||||
|
||||
for reference_doctype, (doctype_field, name_field) in LOG_REFERENCE_FIELDS.items():
|
||||
frappe.db.delete(reference_doctype, {doctype_field: doctype, name_field: ("in", batch)})
|
||||
|
||||
Reference in New Issue
Block a user