mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-14 17:33:09 +00:00
refactor: use mapper paths directly, drop re-export shims
Repoint all JS method strings and Python imports for mapper functions across 18 doctypes from the doctype module to its mapper module, and remove the now-unused re-export shims from each doctype file (keeping only names used internally).
This commit is contained in:
@@ -45,7 +45,7 @@ frappe.ui.form.on("Communication", {
|
||||
|
||||
make_lead_from_communication: (frm) => {
|
||||
return frappe.call({
|
||||
method: "erpnext.crm.doctype.lead.lead.make_lead_from_communication",
|
||||
method: "erpnext.crm.doctype.lead.mapper.make_lead_from_communication",
|
||||
args: {
|
||||
communication: frm.doc.name,
|
||||
},
|
||||
@@ -89,7 +89,7 @@ frappe.ui.form.on("Communication", {
|
||||
fields,
|
||||
(data) => {
|
||||
frappe.call({
|
||||
method: "erpnext.crm.doctype.opportunity.opportunity.make_opportunity_from_communication",
|
||||
method: "erpnext.crm.doctype.opportunity.mapper.make_opportunity_from_communication",
|
||||
args: {
|
||||
communication: frm.doc.name,
|
||||
company: data.company,
|
||||
|
||||
Reference in New Issue
Block a user