cleanup for stock entry - remove production order from locals

This commit is contained in:
Nabin Hait
2012-12-21 14:42:00 +05:30
parent 3765430c99
commit dff6ed880b
2 changed files with 16 additions and 7 deletions

View File

@@ -41,13 +41,6 @@ erpnext.utils.Controller = Class.extend({
refresh: function() {
erpnext.hide_naming_series();
if(this.frm.doc.__islocal && this.frm.fields_dict.naming_series
&& !this.frm.doc.naming_series) {
var series_opts = $.map((this.frm.fields_dict.naming_series.df.options ||
"").split("\n"), function(v) { return v ? v : null; });
if (series_opts.length==1) this.frm.set_value("naming_series", series_opts[0]);
}
}
});