From a84d38999cc14f9958abf6be6656a5afcfdc0a5c Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Thu, 28 Dec 2017 18:45:27 +0530 Subject: [PATCH] [Fix] Sales order erased on production order on selection of sales order (#12225) --- .../manufacturing/doctype/production_order/production_order.js | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/manufacturing/doctype/production_order/production_order.js b/erpnext/manufacturing/doctype/production_order/production_order.js index fb7ced98fa..8a86668fcd 100644 --- a/erpnext/manufacturing/doctype/production_order/production_order.js +++ b/erpnext/manufacturing/doctype/production_order/production_order.js @@ -226,6 +226,7 @@ frappe.ui.form.on("Production Order", { args: { production_item: frm.doc.production_item }, callback: function(r) { frm.set_query("sales_order", function() { + erpnext.in_production_item_onchange = true; return { filters: [ ["Sales Order","name", "in", r.message]