fixed remove from locals

This commit is contained in:
Anand Doshi 2012-12-21 16:02:36 +05:30
parent 625713e2eb
commit c3e485b705

View File

@ -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);
}
},