Skip to content

Commit

Permalink
fix: disable form save on naming series tool (frappe#30909)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush authored and hrwX committed May 10, 2022
1 parent c01080e commit 61b74a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion erpnext/setup/doctype/naming_series/naming_series.js
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 61b74a9

Please sign in to comment.