I have not used client script.In Back End i have written this code,
onload: function(listview) {
if (!frappe.user.has_role(‘Administrator’)) {
listview.$result.off('click');
}
}
I have not used client script.In Back End i have written this code,
onload: function(listview) {
if (!frappe.user.has_role(‘Administrator’)) {
listview.$result.off('click');
}
}