fix: disable form save on naming series tool (#30909) (#30910)

(cherry picked from commit f31122cbc3)

Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
mergify[bot]
2022-05-05 17:38:11 +05:30
committed by GitHub
parent c458e14e68
commit d60a6cb2f8

View File

@@ -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",