Skip to content

Commit

Permalink
Show opportunity_from instead of customer in opportunity list
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryan20 committed Feb 12, 2025
1 parent 36b5ca3 commit b1f3400
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion next_crm/api/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def get_quick_filters(doctype: str):
"type": field.fieldtype,
"options": field.options,
"filters": (
[["name", "in", ["Customer", "Lead"]]]
[["name", "in", ["Customer", "Lead", "Prospect"]]]
if field.fieldname == "opportunity_from"
else []
),
Expand Down
8 changes: 4 additions & 4 deletions next_crm/overrides/opportunity.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ def apply_sla(self):
def default_list_data():
columns = [
{
"label": "Customer",
"type": "Link",
"key": "customer",
"options": "Customer",
"label": "Opportunity From",
"type": "Dynamic Link",
"key": "party_name",
"options": "opportunity_from",
"width": "11rem",
},
{
Expand Down

0 comments on commit b1f3400

Please sign in to comment.