mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
Merge pull request #20691 from prssanna/opportunity-fix
fix: set query on change in opportunity_from value
This commit is contained in:
@@ -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");
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user