[fix] disable save in naming series
diff --git a/erpnext/setup/doctype/naming_series/naming_series.js b/erpnext/setup/doctype/naming_series/naming_series.js
index e781754..5917f52 100644
--- a/erpnext/setup/doctype/naming_series/naming_series.js
+++ b/erpnext/setup/doctype/naming_series/naming_series.js
@@ -1,7 +1,10 @@
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
+
cur_frm.cscript.onload_post_render = function(doc, cdt, cdn) {
+ cur_frm.disable_save();
+ cur_frm.toolbar.print_icon.addClass("hide");
return cur_frm.call({
doc: cur_frm.doc,
method: 'get_transactions',
@@ -18,7 +21,7 @@
}
cur_frm.cscript.select_doc_for_series = function(doc, cdt, cdn) {
- cur_frm.toggle_display(['help_html','set_options', 'user_must_always_select', 'update'],
+ cur_frm.toggle_display(['help_html','set_options', 'user_must_always_select', 'update'],
doc.select_doc_for_series);
var callback = function(r, rt){
@@ -40,4 +43,4 @@
return cur_frm.call_server('get_current', '', function(r) {
refresh_field('current_value');
});
-}
\ No newline at end of file
+}