diff --git a/crm/api/doc.py b/crm/api/doc.py index 87b0c9fbb..39697cb4a 100644 --- a/crm/api/doc.py +++ b/crm/api/doc.py @@ -51,8 +51,8 @@ def get_filterable_fields(doctype: str): @frappe.whitelist() def get_list_data(doctype: str, filters: dict, order_by: str): - columns = [] - rows = [] + columns = [{"label": "Name", "key": "name", "fieldtype": "Data"}] + rows = ["name"] if frappe.db.exists("CRM List View Settings", doctype): list_view_settings = frappe.get_doc("CRM List View Settings", doctype)