fix: consider table multiselect in delete transaction

This commit is contained in:
SowmyaArunachalam
2026-02-12 13:22:17 +05:30
parent 1218c0f518
commit be3d2422a7

View File

@@ -317,7 +317,9 @@ class TransactionDeletionRecord(Document):
list: List of child table DocType names (Table field options)
"""
return frappe.get_all(
"DocField", filters={"parent": doctype_name, "fieldtype": "Table"}, pluck="options"
"DocField",
filters={"parent": doctype_name, "fieldtype": ["in", ["Table", "Table MultiSelect"]]},
pluck="options",
)
def _get_to_delete_row_infos(self, doctype_name, company_field=None, company=None):