[Fix] Sales order erased on production order on selection of sales order (#12225)

This commit is contained in:
rohitwaghchaure 2017-12-28 18:45:27 +05:30 committed by Nabin Hait
parent c9ed09440c
commit a84d38999c

View File

@ -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]