From 3536a754ff8dd778e72679dd906e7703f1ef7c0f Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 26 Jun 2024 17:47:30 +0530 Subject: [PATCH] fix: lead status filter (backport #41816) (#42046) fix: lead status filter (#41816) (cherry picked from commit 8ae2b8ff8cb9070304e4961d290fc14c97ac900a) Co-authored-by: Nihantra C. Patel <141945075+Nihantra-Patel@users.noreply.github.com> --- erpnext/crm/doctype/lead/lead_list.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erpnext/crm/doctype/lead/lead_list.js b/erpnext/crm/doctype/lead/lead_list.js index 97415251a93..beef2c934dc 100644 --- a/erpnext/crm/doctype/lead/lead_list.js +++ b/erpnext/crm/doctype/lead/lead_list.js @@ -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 () {