I hava a custom doctype “My Doctype” that has a status field and a kanban view named “My Doctype Kanban View” which works fine when I view it manually
In a master doctype I have created a button that directs to a kanban list view.
frm.add_custom_button(__(“Production View”), function() {
frappe.route_options = {“mydoctype”: frm.doc.name};
frappe.set_route(“List”, “My Doctype”, “Kanban”, “My Doctype Kanban View”);
});