refactored client side Model and Meta - frappe/frappe#478

This commit is contained in:
Rushabh Mehta
2014-03-26 18:24:30 +05:30
parent 5c6b34a84c
commit aa355af2cf
31 changed files with 53 additions and 77 deletions

View File

@@ -30,9 +30,8 @@ $.extend(cur_frm.cscript, {
}
},
make_invoice: function() {
var doc = cur_frm.doc;
frappe.model.map({
source: frappe.model.get_doclist(doc.doctype, doc.name),
source: cur_frm.doc,
target: "Sales Invoice"
});
}