chore: Add supplier query back

This commit is contained in:
Deepesh Garg
2024-03-13 12:06:32 +05:30
parent e87b44f758
commit effc9d1492

View File

@@ -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({