fix: duplicating a Customer/Supplier shouldn't inherit the source's primary contact and address (#55421)

Co-authored-by: Nabin Hait <nabinhait@gmail.com>
This commit is contained in:
Antoine Maas
2026-06-03 17:34:12 +02:00
committed by GitHub
parent 40bcf6e3b6
commit cb84678198
2 changed files with 18 additions and 6 deletions

View File

@@ -381,24 +381,28 @@
"fieldname": "supplier_primary_contact",
"fieldtype": "Link",
"label": "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": "primary_address",
"fieldtype": "Text Editor",
"label": "Primary Address Preview",
"no_copy": 1,
"read_only": 1
},
{
@@ -406,6 +410,7 @@
"fieldname": "supplier_primary_address",
"fieldtype": "Link",
"label": "Primary Address",
"no_copy": 1,
"options": "Address"
},
{
@@ -548,7 +553,7 @@
"link_fieldname": "party"
}
],
"modified": "2026-05-29 13:03:41.864602",
"modified": "2026-05-29 16:52:59.441272",
"modified_by": "Administrator",
"module": "Buying",
"name": "Supplier",

View File

@@ -316,6 +316,7 @@
"fieldname": "customer_primary_contact",
"fieldtype": "Link",
"label": "Customer Primary Contact",
"no_copy": 1,
"options": "Contact"
},
{
@@ -323,6 +324,7 @@
"fieldname": "mobile_no",
"fieldtype": "Read Only",
"label": "Mobile No",
"no_copy": 1,
"options": "Mobile"
},
{
@@ -330,6 +332,7 @@
"fieldname": "email_id",
"fieldtype": "Read Only",
"label": "Email Id",
"no_copy": 1,
"options": "Email"
},
{
@@ -341,12 +344,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
},
{
@@ -588,14 +593,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": "Numbers this customer uses to identify your company in their own system.",
@@ -680,7 +687,7 @@
"link_fieldname": "party"
}
],
"modified": "2026-05-29 02:21:41.089319",
"modified": "2026-05-29 16:52:59.441272",
"modified_by": "Administrator",
"module": "Selling",
"name": "Customer",