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

This commit is contained in:
Ankush Menat 2022-05-05 17:35:58 +05:30 committed by GitHub
parent ad7c113c0d
commit f31122cbc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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