mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
Unable to change link from new lead to existing customer (#22795)
This commit is contained in:
@@ -60,12 +60,18 @@ frappe.ui.form.on("Opportunity", {
|
|||||||
|
|
||||||
opportunity_from: function(frm) {
|
opportunity_from: function(frm) {
|
||||||
frm.toggle_reqd("party_name", frm.doc.opportunity_from);
|
frm.toggle_reqd("party_name", frm.doc.opportunity_from);
|
||||||
|
frm.trigger("setup_opportunity_from");
|
||||||
|
frm.set_value("party_name","");
|
||||||
|
},
|
||||||
|
|
||||||
|
setup_opportunity_from: function(frm) {
|
||||||
|
frm.trigger('setup_queries');
|
||||||
frm.trigger("set_dynamic_field_label");
|
frm.trigger("set_dynamic_field_label");
|
||||||
},
|
},
|
||||||
|
|
||||||
refresh: function(frm) {
|
refresh: function(frm) {
|
||||||
var doc = frm.doc;
|
var doc = frm.doc;
|
||||||
frm.events.opportunity_from(frm);
|
frm.trigger("setup_opportunity_from");
|
||||||
frm.trigger('toggle_mandatory');
|
frm.trigger('toggle_mandatory');
|
||||||
erpnext.toggle_naming_series();
|
erpnext.toggle_naming_series();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user