diff --git a/manufacturing/doctype/bom/bom.py b/manufacturing/doctype/bom/bom.py index 2611b7ab17..d874d3c643 100644 --- a/manufacturing/doctype/bom/bom.py +++ b/manufacturing/doctype/bom/bom.py @@ -217,7 +217,7 @@ class DocType: elif m.bom_no: msgprint("""As Item %s is not a manufactured / sub-contracted item, \ - you can enter BOM against it (Row No: %s).""" % + you can not enter BOM against it (Row No: %s).""" % (m.item_code, m.idx), raise_exception = 1) if flt(m.qty) <= 0: diff --git a/stock/doctype/stock_entry/stock_entry.js b/stock/doctype/stock_entry/stock_entry.js index e4362f8e5b..724b215d3f 100644 --- a/stock/doctype/stock_entry/stock_entry.js +++ b/stock/doctype/stock_entry/stock_entry.js @@ -44,8 +44,10 @@ erpnext.stock.StockEntry = erpnext.utils.Controller.extend({ clean_up: function() { // Clear Production Order record from locals, because it is updated via Stock Entry - if(this.frm.doc.production_order && this.frm.doc.purpose == "Manufacture/Repack") { - wn.model.clear_doclist("Production Order", this.frm.doc.production_order); + if(this.frm.doc.production_order && + this.frm.doc.purpose == "Manufacture/Repack") { + wn.model.remove_from_locals("Production Order", + this.frm.doc.production_order); } },