diff --git a/erpnext/stock/doctype/material_request/material_request.js b/erpnext/stock/doctype/material_request/material_request.js index 0b77465d0d8..f04acc85ed5 100644 --- a/erpnext/stock/doctype/material_request/material_request.js +++ b/erpnext/stock/doctype/material_request/material_request.js @@ -365,6 +365,12 @@ frappe.ui.form.on("Material Request", { description: __( "Select a Supplier from the Default Suppliers of the items below. On selection, a Purchase Order will be made against items belonging to the selected Supplier only." ), + get_query: () => { + return { + query: "erpnext.stock.doctype.material_request.material_request.get_default_supplier_query", + filters: { doc: frm.doc.name }, + }; + }, }, (values) => { frappe.model.open_mapped_doc({