ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Getting Error On button click "The resource you are looking for is not available"

customization

#1

JS code:

cur_frm.cscript.hello= function(doc,dt,dn){
frappe.call({
method: “booking.booking.event.hello”,
args: {},
callback: function® {
if (r.message){
console.log(r.message)
}
}
})
}

Python code:

@frappe.whitelist()
def hello():
frappe.msgprint(“hello World!”)