fix: do not allow to manually submit the SABB

This commit is contained in:
Rohit Waghchaure
2025-01-29 16:36:17 +05:30
parent a11aee3ab3
commit 2b16eb5381

View File

@@ -6,6 +6,10 @@ frappe.ui.form.on("Serial and Batch Bundle", {
frm.trigger("set_queries");
},
before_submit(frm) {
frappe.throw(__("User cannot submitted the Serial and Batch Bundle manually"));
},
refresh(frm) {
frm.trigger("toggle_fields");
frm.trigger("prepare_serial_batch_prompt");