view leads button added to campaign
This commit is contained in:
parent
dd82bf2ad9
commit
6c85479e4f
@ -6,4 +6,10 @@ frappe.ui.form.on("Campaign", "refresh", function(frm) {
|
||||
if(frm.doc.__islocal) {
|
||||
frm.toggle_display("naming_series", frappe.boot.sysdefaults.campaign_naming_by=="Naming Series");
|
||||
}
|
||||
else{
|
||||
cur_frm.add_custom_button(__("View Leads"), function() {
|
||||
frappe.route_options = {"source": "Campaign","campaign_name": frm.doc.name}
|
||||
frappe.set_route("List", "Lead");
|
||||
}, "icon-list", true);
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user