Skip to content

Commit

Permalink
Merge pull request #43 from rtCamp/fix/opp-from-filter
Browse files Browse the repository at this point in the history
fix: add filter to opportunity from in opportunities list view
  • Loading branch information
Aryan20 authored Nov 26, 2024
2 parents 9ca5a3c + 52c9342 commit b7609a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/QuickFilterField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
:value="filter.value"
:doctype="filter.options"
:placeholder="filter.label"
:filters="filter.filters"
@change="(data) => updateFilter(filter, data)"
/>
<component
Expand Down
5 changes: 5 additions & 0 deletions next_crm/api/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ def get_quick_filters(doctype: str):
"name": field.fieldname,
"type": field.fieldtype,
"options": field.options,
"filters": (
[["name", "in", ["Customer", "Lead"]]]
if field.fieldname == "opportunity_from"
else []
),
}
)

Expand Down

0 comments on commit b7609a9

Please sign in to comment.