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

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:04:25 +00:00
committed by GitHub
parent e8267e3237
commit 013bd1a566
2 changed files with 18 additions and 6 deletions

View File

@@ -362,19 +362,22 @@
"fieldname": "supplier_primary_contact", "fieldname": "supplier_primary_contact",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Supplier Primary Contact", "label": "Supplier Primary Contact",
"no_copy": 1,
"options": "Contact" "options": "Contact"
}, },
{ {
"fetch_from": "supplier_primary_contact.mobile_no", "fetch_from": "supplier_primary_contact.mobile_no",
"fieldname": "mobile_no", "fieldname": "mobile_no",
"fieldtype": "Read Only", "fieldtype": "Read Only",
"label": "Mobile No" "label": "Mobile No",
"no_copy": 1
}, },
{ {
"fetch_from": "supplier_primary_contact.email_id", "fetch_from": "supplier_primary_contact.email_id",
"fieldname": "email_id", "fieldname": "email_id",
"fieldtype": "Read Only", "fieldtype": "Read Only",
"label": "Email Id" "label": "Email Id",
"no_copy": 1
}, },
{ {
"fieldname": "column_break_44", "fieldname": "column_break_44",
@@ -384,6 +387,7 @@
"fieldname": "primary_address", "fieldname": "primary_address",
"fieldtype": "Text", "fieldtype": "Text",
"label": "Primary Address", "label": "Primary Address",
"no_copy": 1,
"read_only": 1 "read_only": 1
}, },
{ {
@@ -391,6 +395,7 @@
"fieldname": "supplier_primary_address", "fieldname": "supplier_primary_address",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Supplier Primary Address", "label": "Supplier Primary Address",
"no_copy": 1,
"options": "Address" "options": "Address"
}, },
{ {
@@ -486,7 +491,7 @@
"link_fieldname": "party" "link_fieldname": "party"
} }
], ],
"modified": "2026-02-06 12:58:01.398824", "modified": "2026-05-29 16:52:59.441272",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Buying", "module": "Buying",
"name": "Supplier", "name": "Supplier",

View File

@@ -305,6 +305,7 @@
"fieldname": "customer_primary_contact", "fieldname": "customer_primary_contact",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Customer Primary Contact", "label": "Customer Primary Contact",
"no_copy": 1,
"options": "Contact" "options": "Contact"
}, },
{ {
@@ -312,6 +313,7 @@
"fieldname": "mobile_no", "fieldname": "mobile_no",
"fieldtype": "Read Only", "fieldtype": "Read Only",
"label": "Mobile No", "label": "Mobile No",
"no_copy": 1,
"options": "Mobile" "options": "Mobile"
}, },
{ {
@@ -319,6 +321,7 @@
"fieldname": "email_id", "fieldname": "email_id",
"fieldtype": "Read Only", "fieldtype": "Read Only",
"label": "Email Id", "label": "Email Id",
"no_copy": 1,
"options": "Email" "options": "Email"
}, },
{ {
@@ -330,12 +333,14 @@
"fieldname": "customer_primary_address", "fieldname": "customer_primary_address",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Customer Primary Address", "label": "Customer Primary Address",
"no_copy": 1,
"options": "Address" "options": "Address"
}, },
{ {
"fieldname": "primary_address", "fieldname": "primary_address",
"fieldtype": "Text", "fieldtype": "Text",
"label": "Primary Address", "label": "Primary Address",
"no_copy": 1,
"read_only": 1 "read_only": 1
}, },
{ {
@@ -590,14 +595,16 @@
"fieldname": "first_name", "fieldname": "first_name",
"fieldtype": "Read Only", "fieldtype": "Read Only",
"hidden": 1, "hidden": 1,
"label": "First Name" "label": "First Name",
"no_copy": 1
}, },
{ {
"fetch_from": "customer_primary_contact.last_name", "fetch_from": "customer_primary_contact.last_name",
"fieldname": "last_name", "fieldname": "last_name",
"fieldtype": "Read Only", "fieldtype": "Read Only",
"hidden": 1, "hidden": 1,
"label": "Last Name" "label": "Last Name",
"no_copy": 1
} }
], ],
"icon": "fa fa-user", "icon": "fa fa-user",
@@ -611,7 +618,7 @@
"link_fieldname": "party" "link_fieldname": "party"
} }
], ],
"modified": "2026-01-21 17:23:42.151114", "modified": "2026-05-29 16:52:59.441272",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Selling", "module": "Selling",
"name": "Customer", "name": "Customer",