From 013bd1a5664a7f3a5b65f26b77a63644e06f68eb Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 3 Jun 2026 16:04:25 +0000 Subject: [PATCH] fix: duplicating a Customer/Supplier shouldn't inherit the source's primary contact and address (backport #55421) (#55608) Co-authored-by: Nabin Hait Co-authored-by: Antoine Maas Co-authored-by: Mihir Kandoi fix: duplicating a Customer/Supplier shouldn't inherit the source's primary contact and address (#55421) --- erpnext/buying/doctype/supplier/supplier.json | 11 ++++++++--- erpnext/selling/doctype/customer/customer.json | 13 ++++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/erpnext/buying/doctype/supplier/supplier.json b/erpnext/buying/doctype/supplier/supplier.json index ee3c9c840f0..7f60244e916 100644 --- a/erpnext/buying/doctype/supplier/supplier.json +++ b/erpnext/buying/doctype/supplier/supplier.json @@ -362,19 +362,22 @@ "fieldname": "supplier_primary_contact", "fieldtype": "Link", "label": "Supplier Primary Contact", + "no_copy": 1, "options": "Contact" }, { "fetch_from": "supplier_primary_contact.mobile_no", "fieldname": "mobile_no", "fieldtype": "Read Only", - "label": "Mobile No" + "label": "Mobile No", + "no_copy": 1 }, { "fetch_from": "supplier_primary_contact.email_id", "fieldname": "email_id", "fieldtype": "Read Only", - "label": "Email Id" + "label": "Email Id", + "no_copy": 1 }, { "fieldname": "column_break_44", @@ -384,6 +387,7 @@ "fieldname": "primary_address", "fieldtype": "Text", "label": "Primary Address", + "no_copy": 1, "read_only": 1 }, { @@ -391,6 +395,7 @@ "fieldname": "supplier_primary_address", "fieldtype": "Link", "label": "Supplier Primary Address", + "no_copy": 1, "options": "Address" }, { @@ -486,7 +491,7 @@ "link_fieldname": "party" } ], - "modified": "2026-02-06 12:58:01.398824", + "modified": "2026-05-29 16:52:59.441272", "modified_by": "Administrator", "module": "Buying", "name": "Supplier", diff --git a/erpnext/selling/doctype/customer/customer.json b/erpnext/selling/doctype/customer/customer.json index dd1910ed15a..568aad1a36c 100644 --- a/erpnext/selling/doctype/customer/customer.json +++ b/erpnext/selling/doctype/customer/customer.json @@ -305,6 +305,7 @@ "fieldname": "customer_primary_contact", "fieldtype": "Link", "label": "Customer Primary Contact", + "no_copy": 1, "options": "Contact" }, { @@ -312,6 +313,7 @@ "fieldname": "mobile_no", "fieldtype": "Read Only", "label": "Mobile No", + "no_copy": 1, "options": "Mobile" }, { @@ -319,6 +321,7 @@ "fieldname": "email_id", "fieldtype": "Read Only", "label": "Email Id", + "no_copy": 1, "options": "Email" }, { @@ -330,12 +333,14 @@ "fieldname": "customer_primary_address", "fieldtype": "Link", "label": "Customer Primary Address", + "no_copy": 1, "options": "Address" }, { "fieldname": "primary_address", "fieldtype": "Text", "label": "Primary Address", + "no_copy": 1, "read_only": 1 }, { @@ -590,14 +595,16 @@ "fieldname": "first_name", "fieldtype": "Read Only", "hidden": 1, - "label": "First Name" + "label": "First Name", + "no_copy": 1 }, { "fetch_from": "customer_primary_contact.last_name", "fieldname": "last_name", "fieldtype": "Read Only", "hidden": 1, - "label": "Last Name" + "label": "Last Name", + "no_copy": 1 } ], "icon": "fa fa-user", @@ -611,7 +618,7 @@ "link_fieldname": "party" } ], - "modified": "2026-01-21 17:23:42.151114", + "modified": "2026-05-29 16:52:59.441272", "modified_by": "Administrator", "module": "Selling", "name": "Customer",