i’m getting an error while calling python function in javascript.
If your function in the same python folder you can call it using this code:
frappe.call({
"method": "ot",
doc: cur_frm.doc,
args: { "employee": cur_frm.doc.employee },
callback: function(r) {
alert(r.message);
}
});
And move your ot
function inside the EmpCode
class
1 Like