[fix] disable save in naming series
This commit is contained in:
parent
8bf0b89595
commit
92b6f76612
@ -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.update_selects = function(r) {
|
||||
}
|
||||
|
||||
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 @@ cur_frm.cscript.prefix = function(doc, dt, dn) {
|
||||
return cur_frm.call_server('get_current', '', function(r) {
|
||||
refresh_field('current_value');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user