Merge pull request #20691 from prssanna/opportunity-fix

fix: set query on change in opportunity_from value
This commit is contained in:
Himanshu 2020-02-21 23:39:33 +05:30 committed by GitHub
commit 6ba33acc46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");
},