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:
Nabin Hait
2026-06-01 18:17:56 +05:30
parent 498cd2b371
commit 530e587bf2
113 changed files with 394 additions and 484 deletions

View File

@@ -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,