From 714233a86271f4aa10b8cb55c3fffece44b9d371 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Sun, 28 Jan 2024 17:26:36 +0530 Subject: [PATCH] fix: added date & datetime field in allowed fieldtypes --- crm/api/doc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crm/api/doc.py b/crm/api/doc.py index a9fc2237..14e94a9a 100644 --- a/crm/api/doc.py +++ b/crm/api/doc.py @@ -46,6 +46,8 @@ def get_filterable_fields(doctype: str): "Small Text", "Text Editor", "Text", + "Date", + "Datetime", ] c = get_controller(doctype) @@ -84,6 +86,8 @@ def get_filterable_fields(doctype: str): {"fieldname": "_liked_by", "fieldtype": "Data", "label": "Liked By"}, {"fieldname": "_comments", "fieldtype": "Text", "label": "Comments"}, {"fieldname": "_assign", "fieldtype": "Text", "label": "Assigned To"}, + {"fieldname": "creation", "fieldtype": "Datetime", "label": "Created On"}, + {"fieldname": "modified", "fieldtype": "Datetime", "label": "Last Updated On"}, ] for field in standard_fields: if (