From 9e56f213a3c7149a2067944f4adb274af69598f6 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 21 Oct 2024 20:16:35 +0530 Subject: [PATCH] fix: lead create opp from connection not working (cherry picked from commit 0dc518b1c3ad6e3539bfbc8486eea5a6fc6a9812) --- erpnext/crm/doctype/lead/lead.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/crm/doctype/lead/lead.js b/erpnext/crm/doctype/lead/lead.js index e50cf9e4dd0b..022d1906e848 100644 --- a/erpnext/crm/doctype/lead/lead.js +++ b/erpnext/crm/doctype/lead/lead.js @@ -7,9 +7,9 @@ cur_frm.email_field = "email_id"; erpnext.LeadController = class LeadController extends frappe.ui.form.Controller { setup() { this.frm.make_methods = { - Customer: this.make_customer, - Quotation: this.make_quotation, - Opportunity: this.make_opportunity, + Customer: this.make_customer.bind(this), + Quotation: this.make_quotation.bind(this), + Opportunity: this.make_opportunity.bind(this), }; // For avoiding integration issues.