Merge pull request #15127 from ahmedzaqout/patch-3

replace customer to department
This commit is contained in:
Zarrar 2018-08-12 17:48:29 +05:30 committed by GitHub
commit a8d8f52ef8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,8 +5,8 @@ frappe.ui.form.on('Department', {
refresh: function(frm) {
// read-only for root department
if(!frm.doc.parent_department) {
cur_frm.set_read_only();
cur_frm.set_intro(__("This is a root customer group and cannot be edited."));
frm.set_read_only();
frm.set_intro(__("This is a root department and cannot be edited."));
}
},
validate: function(frm) {