From 99eb30242de1f04cf96475ea6c5fd4201fa235bd Mon Sep 17 00:00:00 2001 From: saurabh-bhosale Date: Tue, 13 Feb 2018 07:58:47 +0530 Subject: [PATCH] [Fix] Bug fix in customer_primary_address frappe call (#12880) --- erpnext/selling/doctype/customer/customer.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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); }