List view in python script

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

It is not possible.

And why you need this? What is your use case?

Will this work for you @management

If you want to add the multiple indicators then check it.

Reference: How to set Listview indicators to anyfield - #7 by NCP