From 5b10e806690d9d30d3a8cba541c498e688b2b2bd Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Tue, 7 Nov 2023 16:02:28 +0530 Subject: [PATCH] fix: added sort fields for deal --- crm/fcrm/doctype/crm_deal/crm_deal.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/crm/fcrm/doctype/crm_deal/crm_deal.py b/crm/fcrm/doctype/crm_deal/crm_deal.py index f36b1cf9c..3cfcf3479 100644 --- a/crm/fcrm/doctype/crm_deal/crm_deal.py +++ b/crm/fcrm/doctype/crm_deal/crm_deal.py @@ -6,4 +6,14 @@ class CRMDeal(Document): - pass + @staticmethod + def sort_options(): + return [ + { "label": 'Created', "value": 'creation' }, + { "label": 'Modified', "value": 'modified' }, + { "label": 'Status', "value": 'status' }, + { "label": 'Deal owner', "value": 'deal_owner' }, + { "label": 'Organization', "value": 'organization' }, + { "label": 'Email', "value": 'email' }, + { "label": 'Mobile no', "value": 'mobile_no' }, + ]