fix: Use get_all instead of get_list for child doctype

This change is required to avoid permission error
This commit is contained in:
Suraj Shetty 2021-11-22 13:28:44 +05:30
parent 3ee9c0492a
commit 85fe86c370

View file

@ -191,7 +191,7 @@ class Exporter:
[format_column_name(df) for df in self.fields if df.parent == child_table_doctype]
)
)
data = frappe.db.get_list(
data = frappe.db.get_all(
child_table_doctype,
filters={
"parent": ("in", parent_names),