mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 03:29:16 +00:00
Merge pull request #18389 from deepeshgarg007/lead_email
fix: Fetch email when making Opportunity from Lead
This commit is contained in:
@@ -8,14 +8,8 @@ erpnext.LeadController = frappe.ui.form.Controller.extend({
|
|||||||
setup: function () {
|
setup: function () {
|
||||||
|
|
||||||
this.frm.make_methods = {
|
this.frm.make_methods = {
|
||||||
'Quotation': () => erpnext.utils.create_new_doc('Quotation', {
|
'Quotation': this.make_quotation,
|
||||||
'quotation_to': this.frm.doc.doctype,
|
'Opportunity': this.create_opportunity
|
||||||
'party_name': this.frm.doc.name
|
|
||||||
}),
|
|
||||||
'Opportunity': () => erpnext.utils.create_new_doc('Opportunity', {
|
|
||||||
'opportunity_from': this.frm.doc.doctype,
|
|
||||||
'party_name': this.frm.doc.name
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.frm.fields_dict.customer.get_query = function (doc, cdt, cdn) {
|
this.frm.fields_dict.customer.get_query = function (doc, cdt, cdn) {
|
||||||
|
|||||||
Reference in New Issue
Block a user