[Fix] Bug fix in customer_primary_address frappe call (#12880)
This commit is contained in:
parent
b005950ba7
commit
99eb30242d
@ -45,11 +45,10 @@ frappe.ui.form.on("Customer", {
|
|||||||
customer_primary_address: function(frm){
|
customer_primary_address: function(frm){
|
||||||
if(frm.doc.customer_primary_address){
|
if(frm.doc.customer_primary_address){
|
||||||
frappe.call({
|
frappe.call({
|
||||||
doc: frm.doc,
|
|
||||||
args: {
|
|
||||||
"address_title": frm.doc.customer_primary_address
|
|
||||||
},
|
|
||||||
method: 'frappe.contacts.doctype.address.address.get_address_display',
|
method: 'frappe.contacts.doctype.address.address.get_address_display',
|
||||||
|
args: {
|
||||||
|
"address_dict": frm.doc.customer_primary_address
|
||||||
|
},
|
||||||
callback: function(r) {
|
callback: function(r) {
|
||||||
frm.set_value("primary_address", r.message);
|
frm.set_value("primary_address", r.message);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user