mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
refactor: remove redundant assignment of doctypes_to_be_ignored_list
This commit is contained in:
@@ -348,10 +348,9 @@ class TransactionDeletionRecord(Document):
|
|||||||
self.db_set("error_log", None)
|
self.db_set("error_log", None)
|
||||||
|
|
||||||
def get_doctypes_to_be_ignored_list(self):
|
def get_doctypes_to_be_ignored_list(self):
|
||||||
singles_and_virtuals = frappe.get_all(
|
doctypes_to_be_ignored_list = frappe.get_all(
|
||||||
"DocType", or_filters=[["issingle", "=", 1], ["is_virtual", "=", 1]], pluck="name"
|
"DocType", or_filters=[["issingle", "=", 1], ["is_virtual", "=", 1]], pluck="name"
|
||||||
)
|
)
|
||||||
doctypes_to_be_ignored_list = singles_and_virtuals
|
|
||||||
for doctype in self.doctypes_to_be_ignored:
|
for doctype in self.doctypes_to_be_ignored:
|
||||||
doctypes_to_be_ignored_list.append(doctype.doctype_name)
|
doctypes_to_be_ignored_list.append(doctype.doctype_name)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user