Merge pull request #50153 from KerollesFathy/fix-address-error-when-create-transporter

fix: Address title error when create new transporter on driver
(cherry picked from commit 8efcf6cb38)
This commit is contained in:
Kerolles Fathy
2025-10-22 11:13:13 +03:00
committed by Mergify
parent 0bd3b5aac2
commit 89d305ac9f

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) => {