column status for Bulk Mail list

This commit is contained in:
Raul Viveros 2016-02-07 21:37:18 +01:00
parent d98a90db58
commit ac4a2f300d

View file

@ -0,0 +1,6 @@
frappe.listview_settings['Bulk Email'] = {
get_indicator: function(doc) {
colour = {'Sent': 'green', 'Sending': 'blue', 'Not Sent': 'grey', 'Error': 'red', 'Expired': 'orange'};
return [__(doc.status), colour[doc.status], "status,=," + doc.status];
}
}