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' }, + ]