diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.js b/erpnext/manufacturing/doctype/production_plan/production_plan.js index 4e92ee2d0a8..d400d59a134 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.js +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.js @@ -297,7 +297,7 @@ frappe.ui.form.on("Material Request Plan Item", { } }); -cur_frm.fields_dict['sales_orders'].grid.get_field("sales_order").get_query = function(doc, cdt, cdn) { +cur_frm.fields_dict['sales_orders'].grid.get_field("sales_order").get_query = function(doc) { return{ filters: [ ['Sales Order','docstatus', '=' ,1]