i want to route a doctype on button in list view side. how i can
Hi @briandrogo,
Please check the syntax.
frappe.listview_settings['Supplier'] = {
onload : function(listview) {
listview.page.add_inner_button(("Purchase Invoice"), () => {
frappe.set_route("Form", "Purchase Invoice", 'new_purchase_invoice');
});
}
};
Output:
When click on the button then open a new purchase invoice.
Please set your scenario according.
Thank You!
1 Like
thanks buddy… i am new in frappe so this kind of problem i am facing.
Hi @briandrogo,
If you want to learn the client script then please check it.
Another reference:
I hope this helps.
Thank You!
1 Like