I want to create custom indicators for different options,
I tried the following script, script displaying color indicators but in the status field, I want to add this somewhere else (for party_type, see below screenshot)
get_indicator: function(doc) {
if (doc.party_type === "Supplier") {
return [__("Supplier"), "green"];
} else if (doc.party_type === "Vendor"){
return [__("Vendor"), "blue"];
}
}
How to do this?