From 7eca2407b90bcad9e5af4bdb12370c75ad8981b4 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Tue, 28 Nov 2023 17:01:29 +0530 Subject: [PATCH] fix: set default columns & rows --- crm/api/doc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)