replace cur_frm with frm
This commit is contained in:
parent
7df03a4b5b
commit
a4d06fc881
@ -5,8 +5,8 @@ frappe.ui.form.on('Department', {
|
|||||||
refresh: function(frm) {
|
refresh: function(frm) {
|
||||||
// read-only for root department
|
// read-only for root department
|
||||||
if(!frm.doc.parent_department) {
|
if(!frm.doc.parent_department) {
|
||||||
cur_frm.set_read_only();
|
frm.set_read_only();
|
||||||
cur_frm.set_intro(__("This is a root department and cannot be edited."));
|
frm.set_intro(__("This is a root department and cannot be edited."));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
validate: function(frm) {
|
validate: function(frm) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user