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

fix: Address title error when create new transporter on driver
This commit is contained in:
Kerolles Fathy
2025-10-22 11:13:13 +03:00
committed by GitHub
parent 92891c7e72
commit 8efcf6cb38

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