mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-25 01:28:29 +00:00
fix: Add virtual doctypes to the list of ignored doctypes in transaction deletion
This commit is contained in:
@@ -349,7 +349,8 @@ class TransactionDeletionRecord(Document):
|
||||
|
||||
def get_doctypes_to_be_ignored_list(self):
|
||||
singles = frappe.get_all("DocType", filters={"issingle": 1}, pluck="name")
|
||||
doctypes_to_be_ignored_list = singles
|
||||
virtuals = frappe.get_all("DocType", filters={"is_virtual": 1}, pluck="name")
|
||||
doctypes_to_be_ignored_list = singles + virtuals
|
||||
for doctype in self.doctypes_to_be_ignored:
|
||||
doctypes_to_be_ignored_list.append(doctype.doctype_name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user