From 3218730a167e0e0cce0d9943baf1bbd65c741a4e Mon Sep 17 00:00:00 2001 From: prssanna Date: Thu, 20 Feb 2020 16:14:44 +0530 Subject: [PATCH] fix: set query on change in opportunity_from value --- erpnext/crm/doctype/opportunity/opportunity.js | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/crm/doctype/opportunity/opportunity.js b/erpnext/crm/doctype/opportunity/opportunity.js index c9b0433fad..0c9ba495c7 100644 --- a/erpnext/crm/doctype/opportunity/opportunity.js +++ b/erpnext/crm/doctype/opportunity/opportunity.js @@ -59,6 +59,7 @@ frappe.ui.form.on("Opportunity", { contact_person: erpnext.utils.get_contact_details, opportunity_from: function(frm) { + frm.trigger('setup_queries'); frm.toggle_reqd("party_name", frm.doc.opportunity_from); frm.trigger("set_dynamic_field_label"); },