Merge pull request #50195 from frappe/mergify/bp/version-15-hotfix/pr-50153

fix: Address title error when create new transporter on driver  (backport #50153)
This commit is contained in:
Mihir Kandoi
2025-10-22 13:48:31 +05:30
committed by GitHub

View File

@@ -24,6 +24,7 @@ frappe.ui.form.on("Driver", {
transporter: function (frm, cdt, cdn) {
// this assumes that supplier's address has same title as supplier's name
if (!frm.doc.transporter) return;
frappe.db
.get_doc("Address", null, { address_title: frm.doc.transporter })
.then((r) => {