Skip to content

Commit

Permalink
fix: added sort fields for deal
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed Nov 7, 2023
1 parent e969414 commit 5b10e80
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion crm/fcrm/doctype/crm_deal/crm_deal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
]

0 comments on commit 5b10e80

Please sign in to comment.