frappe.listview_settings[“NG 03 Vendor Database Prod”] = {
get_indicator: function (doc) {
const status_colors = {
Draft: “red”,
Unpaid: “orange”,
“Approved For Payment”: “green”,
Paid: “purple”,
};
const status = doc.status;
return [__(status), status_colors[status], `status,=,${status}`];
},
};
I want to implement this in python script in on_update function