11 lines
271 B
Markdown
11 lines
271 B
Markdown
|
|
||
|
frappe.ui.form.on("Material Request", "validate", function(frm) {
|
||
|
if(user=="user1@example.com" && frm.doc.purpose!="Material Receipt") {
|
||
|
msgprint("You are only allowed Material Receipt");
|
||
|
throw "Not allowed";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
{next}
|