Skip to content

Commit

Permalink
fix: lead status filter (#41816)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8ae2b8f)
  • Loading branch information
Nihantra-Patel authored and mergify[bot] committed Jun 26, 2024
1 parent b294357 commit c5edd0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions erpnext/crm/doctype/lead/lead_list.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
frappe.listview_settings["Lead"] = {
get_indicator: function (doc) {
var indicator = [__(doc.status), frappe.utils.guess_colour(doc.status), "status,=," + doc.status];
return indicator;
},
onload: function (listview) {
if (frappe.boot.user.can_create.includes("Prospect")) {
listview.page.add_action_item(__("Create Prospect"), function () {
Expand Down

0 comments on commit c5edd0d

Please sign in to comment.