From 52ec0fa7e9e495d8ba2da950411e2d4568286e71 Mon Sep 17 00:00:00 2001 From: Maxwell Morais Date: Mon, 18 Apr 2016 13:24:25 -0300 Subject: [PATCH] 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 --- erpnext/crm/doctype/opportunity/opportunity.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/crm/doctype/opportunity/opportunity.js b/erpnext/crm/doctype/opportunity/opportunity.js index 884e9f4737..337b6319ff 100644 --- a/erpnext/crm/doctype/opportunity/opportunity.js +++ b/erpnext/crm/doctype/opportunity/opportunity.js @@ -8,7 +8,9 @@ frappe.ui.form.on("Opportunity", { 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");