mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 12:39:18 +00:00
refactored client side Model and Meta - frappe/frappe#478
This commit is contained in:
@@ -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"
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user