fix(stock): drop call to confirm_if_drafts_exist missing on v16 (#57833)

(cherry picked from commit 626e35135f)
This commit is contained in:
Mihir Kandoi
2026-08-06 13:38:45 +05:30
committed by Mergify
parent 68ea583a1f
commit e834910bfd

View File

@@ -533,7 +533,7 @@ frappe.ui.form.on("Material Request", {
},
],
primary_action_label: __("Create"),
primary_action: async function (values) {
primary_action: function (values) {
const item_suppliers = (values.items || []).filter((row) => row.__checked);
if (!item_suppliers.length) {
frappe.throw(__("Select at least one Item"));
@@ -567,10 +567,6 @@ frappe.ui.form.on("Material Request", {
);
}
if (!(await erpnext.utils.confirm_if_drafts_exist(frm.doc, "Purchase Order"))) {
return;
}
frappe.call({
method: "erpnext.stock.doctype.material_request.material_request.make_purchase_orders_by_supplier",
args: { source_name: frm.doc.name, item_suppliers: item_suppliers },