[Fix] Bug fix in customer_primary_address frappe call (#12880)
diff --git a/erpnext/selling/doctype/customer/customer.js b/erpnext/selling/doctype/customer/customer.js
index 25c3cd2..ed8e6c8 100644
--- a/erpnext/selling/doctype/customer/customer.js
+++ b/erpnext/selling/doctype/customer/customer.js
@@ -45,11 +45,10 @@
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);
}