From e834910bfd389778d2b596ffe342a8b5b7dec078 Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Thu, 6 Aug 2026 13:38:45 +0530 Subject: [PATCH] fix(stock): drop call to confirm_if_drafts_exist missing on v16 (#57833) (cherry picked from commit 626e35135fd80819eb448fc1b6de48c7cdbf9298) --- erpnext/stock/doctype/material_request/material_request.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/erpnext/stock/doctype/material_request/material_request.js b/erpnext/stock/doctype/material_request/material_request.js index 4ff2c2c27af..c3ba08b16a7 100644 --- a/erpnext/stock/doctype/material_request/material_request.js +++ b/erpnext/stock/doctype/material_request/material_request.js @@ -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 },