refactored javascript models

This commit is contained in:
Rushabh Mehta
2012-12-13 12:53:21 +05:30
parent 1b8a4cab26
commit 291449b6fb
33 changed files with 104 additions and 109 deletions

View File

@@ -70,7 +70,7 @@ cur_frm.cscript['Backflush'] = function() {
}
cur_frm.cscript.make_se = function(doc, process) {
var se = LocalDB.create('Stock Entry');
var se = wn.model.make_new_doc_and_get_name('Stock Entry');
se = locals['Stock Entry'][se];
se.purpose = 'Production Order';
se.process = process;