From 55129e697d9cc86d134dc327c5344607fb5d5c32 Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Mon, 2 Feb 2026 19:59:53 +0530 Subject: [PATCH] fix: populate contact fields when creating quotation from customer (cherry picked from commit 75b2c2c83dc29e2d4d76c704238e9dd088c1a668) --- erpnext/selling/doctype/customer/customer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/selling/doctype/customer/customer.py b/erpnext/selling/doctype/customer/customer.py index 5178ed59fb4..4845b5ea038 100644 --- a/erpnext/selling/doctype/customer/customer.py +++ b/erpnext/selling/doctype/customer/customer.py @@ -512,6 +512,9 @@ def _set_missing_values(source, target): if contact: target.contact_person = contact[0].parent + target.contact_display, target.contact_email, target.contact_mobile = frappe.get_value( + "Contact", contact[0].parent, ["full_name", "email_id", "mobile_no"] + ) @frappe.whitelist()