fix: get contact details (#19281)

This commit is contained in:
Himanshu 2019-10-11 10:43:24 +05:30 committed by Nabin Hait
parent 0fde204074
commit eba3a8e802
2 changed files with 7 additions and 0 deletions

View File

@ -100,6 +100,10 @@ frappe.ui.form.on("Opportunity", {
});
}
}
if (frm.doc.opportunity_from && frm.doc.party_name && !frm.doc.contact_person) {
frm.trigger("party_name");
}
},
set_contact_link: function(frm) {

View File

@ -23,6 +23,9 @@ frappe.ui.form.on('Quotation', {
refresh: function(frm) {
frm.trigger("set_label");
frm.trigger("set_dynamic_field_label");
if (frm.doc.quotation_to && frm.doc.party_name && !frm.doc.contact_person) {
frm.trigger("party_name");
}
},
quotation_to: function(frm) {