diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.js b/erpnext/manufacturing/doctype/production_plan/production_plan.js index 6db901c71a4..221c3bd6ae4 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.js +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.js @@ -37,6 +37,14 @@ frappe.ui.form.on("Production Plan", { }; }); + frm.set_query("sub_assembly_warehouse", function (doc) { + return { + filters: { + company: doc.company, + }, + }; + }); + frm.set_query("material_request", "material_requests", function () { return { filters: {