Hi
I’m trying to get a list of all Customers in a client script for doctype Customer:
cur_frm.cscript.custom_validate = function(doc) {
customers = frappe.model.get_list("Customer");
$.each(customers, function(i,d) {
msgprint(i.toString() + ": " + d.name)
});
}
But get_list only returns one, the current one.
What could be wrong?