get_address_display cannot be called directly

The new function get_address_display dont allow directly call, since it dont support, `frm, cdt, cdn` as arguments
This commit is contained in:
Maxwell Morais 2016-05-22 20:19:30 -03:00
parent ac123c57f3
commit 498cc58522

View File

@ -5,8 +5,9 @@ frappe.provide("erpnext.support");
frappe.ui.form.on_change("Maintenance Schedule", "customer", function(frm) {
erpnext.utils.get_party_details(frm) });
frappe.ui.form.on_change("Maintenance Schedule", "customer_address",
erpnext.utils.get_address_display);
frappe.ui.form.on_change("Maintenance Schedule", "customer_address", function(){
erpnext.utils.get_address_display(cur_frm, 'customer_address', 'address_display');
});
frappe.ui.form.on_change("Maintenance Schedule", "contact_person",
erpnext.utils.get_contact_details);