fix: set query on change in opportunity_from value

This commit is contained in:
prssanna 2020-02-20 16:14:44 +05:30
parent eea0ffcb38
commit 3218730a16

View File

@ -59,6 +59,7 @@ frappe.ui.form.on("Opportunity", {
contact_person: erpnext.utils.get_contact_details, contact_person: erpnext.utils.get_contact_details,
opportunity_from: function(frm) { opportunity_from: function(frm) {
frm.trigger('setup_queries');
frm.toggle_reqd("party_name", frm.doc.opportunity_from); frm.toggle_reqd("party_name", frm.doc.opportunity_from);
frm.trigger("set_dynamic_field_label"); frm.trigger("set_dynamic_field_label");
}, },