frappe.ui.form.on("Material Request", "validate", function(frm) {
if(frappe.user=="user1@example.com" && frm.doc.purpose!="Material Receipt") {
frappe.msgprint("You are only allowed Material Receipt");
frappe.throw(__("Not allowed"));
}
}
Restrict Purpose Of Stock Entry
Administrator edited 2 years agoNo Revisions
Title
Enter title for the new Wiki Group