From 808e51db1956f3289decc6d062266c14cbabbefa Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 3 Jun 2026 16:03:59 +0000 Subject: [PATCH] fix: duplicating a Customer/Supplier shouldn't inherit the source's primary contact and address (backport #55421) (#55609) 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 9caf3d3fa7c..4a7913bceea 100644 --- a/erpnext/buying/doctype/supplier/supplier.json +++ b/erpnext/buying/doctype/supplier/supplier.json @@ -368,19 +368,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", @@ -390,6 +393,7 @@ "fieldname": "primary_address", "fieldtype": "Text Editor", "label": "Primary Address", + "no_copy": 1, "read_only": 1 }, { @@ -397,6 +401,7 @@ "fieldname": "supplier_primary_address", "fieldtype": "Link", "label": "Supplier Primary Address", + "no_copy": 1, "options": "Address" }, { @@ -517,7 +522,7 @@ "link_fieldname": "party" } ], - "modified": "2026-03-09 17:15:25.465759", + "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 95c5fb772e3..3ef461d23bf 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 Editor", "label": "Primary Address", + "no_copy": 1, "read_only": 1 }, { @@ -573,14 +578,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 }, { "description": "Supplier numbers assigned by the customer", @@ -640,7 +647,7 @@ "link_fieldname": "party" } ], - "modified": "2026-03-09 17:15:26.040050", + "modified": "2026-05-29 16:52:59.441272", "modified_by": "Administrator", "module": "Selling", "name": "Customer",