[Fix] Bug fix in customer_primary_address frappe call (#12880)

This commit is contained in:
saurabh-bhosale 2018-02-13 07:58:47 +05:30 committed by Nabin Hait
parent b005950ba7
commit 99eb30242d

View File

@ -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);
}