ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

How to change the color of statuses in ERPNext?

workflow

#1

I would love to have custom colors for the statuses.

I have done some research. I could not understand the answers in these threads:


#2

You mean this smoking gun is no help :wink: Changing indicator color for CRM/Lead custom status


#3

Color can be changed in *_list.js of the doctype


#4

you have to create a new js with the name mydoctype_list.js and add this

frappe.listview_settings['Sales Order'] = {
get_indicator:function(doc){
if (doc.status === "Closed") {
			return [__("Closed"), "green", "status,=,Closed"];
}
}

#5

@hereabdulla @schilgod @clarkej Thanks for the replies. I figured that you have to be in the ERPNext backend to change this. Your answers validate this. In my opinion such an “eye candy” feature should be for web frontend noobs like me. Engaging with a developer to change some colors? Won’t do.


#6

As of now you can change the colour from front end only for ‘Workflow State’ and not for fields.


#7

That’s it! Thanks a lot. #resolved