diff --git a/erpnext/selling/doctype/customer/customer.js b/erpnext/selling/doctype/customer/customer.js index 25c3cd22eca..ed8e6c8f5f4 100644 --- a/erpnext/selling/doctype/customer/customer.js +++ b/erpnext/selling/doctype/customer/customer.js @@ -45,11 +45,10 @@ frappe.ui.form.on("Customer", { customer_primary_address: function(frm){ if(frm.doc.customer_primary_address){ frappe.call({ - doc: frm.doc, - args: { - "address_title": frm.doc.customer_primary_address - }, method: 'frappe.contacts.doctype.address.address.get_address_display', + args: { + "address_dict": frm.doc.customer_primary_address + }, callback: function(r) { frm.set_value("primary_address", r.message); }