Hello,
I’ve made a client script for bypassing listview for Employee role but getting some error. Can anyone help with the mistake? Thanks.
I want below path:
but using this script:
frappe.listview_settings['Employee'] = {
onload: function(doc) {
if(frappe.user.has_role(['Employee']))
{
frappe.set_route("/app/employee/" + doc.name);
}
}
}
I’m getting this path in URL:
Thanks.