2015-12-15 11:50:39 +00:00
|
|
|
# Anliegen der Lagerbuchung einschränken
|
|
|
|
<span class="text-muted contributed-by">Beigetragen von CWT Connector & Wire Technology GmbH</span>
|
2015-12-14 15:30:28 +00:00
|
|
|
|
|
|
|
frappe.ui.form.on("Material Request", "validate", function(frm) {
|
|
|
|
if(user=="user1@example.com" && frm.doc.purpose!="Material Receipt") {
|
2017-06-09 11:53:06 +00:00
|
|
|
frappe.msgprint("You are only allowed Material Receipt");
|
|
|
|
frappe.throw(__("Not allowed"));
|
2015-12-14 15:30:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
{next}
|