mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 03:35:43 +00:00
fix: lead status filter (#41816)
(cherry picked from commit 8ae2b8ff8c)
Co-authored-by: Nihantra C. Patel <141945075+Nihantra-Patel@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
frappe.listview_settings["Lead"] = {
|
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) {
|
onload: function (listview) {
|
||||||
if (frappe.boot.user.can_create.includes("Prospect")) {
|
if (frappe.boot.user.can_create.includes("Prospect")) {
|
||||||
listview.page.add_action_item(__("Create Prospect"), function () {
|
listview.page.add_action_item(__("Create Prospect"), function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user