For List Views, you can add a menu item in the Actions menu through doctype_list_js in hooks.py using the method listview.page.add_action_item. How do you achieve the same with Report Views?
Hi @mincerray,
Please apply it.
frappe.listview_settings['Your DocType'].refresh = function(listview) {
// add button in menu
listview.page.add_menu_item(__("Menu"));
// add button in action
listview.page.add_action_item(__("Actions"));
};
Thank You!
2 Likes
wow, thanks!
Hello, @mincerray
your code is working ,but
i want to add new button just left side of "list view button ", after clicking new button,i want to open new doctype.
thanks, this code really work.