mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 01:34:10 +00:00
[docs] custom script examples, [build] move CMS make to app via event_handlers.on_build
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
---
|
||||
{
|
||||
"_label": "Restrict Purpose of Stock Entry"
|
||||
}
|
||||
---
|
||||
|
||||
cur_frm.cscript.custom_validate = function(doc) {
|
||||
if(user=="user1@example.com" && doc.purpose!="Material Receipt") {
|
||||
msgprint("You are only allowed Material Receipt");
|
||||
validated = false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user