mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix: Removed Missing semicolon and Mixed spaces and tabs and Trailing spaces not allowed.
This commit is contained in:
@@ -4,8 +4,8 @@
|
|||||||
frappe.ui.form.on('Department', {
|
frappe.ui.form.on('Department', {
|
||||||
onload: function(frm) {
|
onload: function(frm) {
|
||||||
frm.set_query("parent_department", function(){
|
frm.set_query("parent_department", function(){
|
||||||
return { "filters": [["Department", "is_group", "=", 1]]}
|
return {"filters": [["Department", "is_group", "=", 1]]};
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
refresh: function(frm) {
|
refresh: function(frm) {
|
||||||
// read-only for root department
|
// read-only for root department
|
||||||
@@ -13,7 +13,6 @@ frappe.ui.form.on('Department', {
|
|||||||
frm.set_read_only();
|
frm.set_read_only();
|
||||||
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) {
|
||||||
if(frm.doc.name=="All Departments") {
|
if(frm.doc.name=="All Departments") {
|
||||||
|
|||||||
Reference in New Issue
Block a user