From 625713e2ebfe2d4896d9e5cf599f6677d2347469 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 21 Dec 2012 15:21:39 +0530 Subject: [PATCH 1/2] fixed message in stock entry --- manufacturing/doctype/bom/bom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: From c3e485b705af16ddd447d5490364fbab0d38a41a Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 21 Dec 2012 16:02:36 +0530 Subject: [PATCH 2/2] fixed remove from locals --- stock/doctype/stock_entry/stock_entry.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } },