get_address_display calling method error
get_address_display, dont can be use in replacement as a function in the doctype controler, since it dont expect `cdt` and `cdn` as arguments.
https://github.com/frappe/erpnext/blob/972c25f78db751988843acc9f206320139cf0542/erpnext/public/js/utils/party.js#L53
diff --git a/erpnext/crm/doctype/opportunity/opportunity.js b/erpnext/crm/doctype/opportunity/opportunity.js
index 884e9f4..337b631 100644
--- a/erpnext/crm/doctype/opportunity/opportunity.js
+++ b/erpnext/crm/doctype/opportunity/opportunity.js
@@ -8,7 +8,9 @@
customer: function(frm) {
erpnext.utils.get_party_details(frm);
},
- customer_address: erpnext.utils.get_address_display,
+ customer_address: function(frm, cdt, cdn){
+ erpnext.utils.get_address_display(frm, 'customer_address', 'address_display', false);
+ },
contact_person: erpnext.utils.get_contact_details,
enquiry_from: function(frm) {
frm.toggle_reqd("lead", frm.doc.enquiry_from==="Lead");