fix: consider table multiselect in delete transaction

(cherry picked from commit be3d2422a7)
This commit is contained in:
SowmyaArunachalam
2026-02-12 13:22:17 +05:30
committed by Mergify
parent 3744c32950
commit 38679d6d14

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):