[fix] new_doc to frappe.new_doc

This commit is contained in:
Rushabh Mehta
2016-06-01 11:46:33 +05:30
parent 919b1b9d5b
commit aa60fd9037
6 changed files with 9 additions and 41 deletions

View File

@@ -93,7 +93,7 @@ $.extend(erpnext.utils, {
.html(frappe.render_template("address_list",
cur_frm.doc.__onload))
.find(".btn-address").on("click", function() {
new_doc("Address");
frappe.new_doc("Address");
});
// render contact
@@ -102,7 +102,7 @@ $.extend(erpnext.utils, {
.html(frappe.render_template("contact_list",
cur_frm.doc.__onload))
.find(".btn-contact").on("click", function() {
new_doc("Contact");
frappe.new_doc("Contact");
}
);
}