Hi @sathya_raj,
Please check the field name and set it into the script. Provide lots of references, just you have to set the field name.
Please check it.
frappe.listview_settings['Lead'] = {
onload: function(listview) {
frappe.route_options = {
lead_owner: "user1@test.com",
_assign: ["like", "%user1@test.com%"]
};
listview.refresh();
}
};
Easily Solution without a script.