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

Co-authored-by: Nabin Hait <nabinhait@gmail.com>
Co-authored-by: Antoine Maas <antoine.maas@okte.io>
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com>
fix: duplicating a Customer/Supplier shouldn't inherit the source's primary contact and address (#55421)
This commit is contained in:
mergify[bot]
2026-06-03 16:03:59 +00:00
committed by GitHub
parent 0274afe560
commit 808e51db19
2 changed files with 18 additions and 6 deletions

View File

@@ -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",

View File

@@ -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",