Skip to content

Commit

Permalink
fix: disable form save on naming series tool (#30909)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush authored May 5, 2022
1 parent ad7c113 commit f31122c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion erpnext/setup/doctype/naming_series/naming_series.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@

frappe.ui.form.on("Naming Series", {
onload: function(frm) {
frm.disable_save();
frm.events.get_doc_and_prefix(frm);
},

refresh: function(frm) {
frm.disable_save();
},

get_doc_and_prefix: function(frm) {
frappe.call({
method: "get_transactions",
Expand Down

0 comments on commit f31122c

Please sign in to comment.