mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 21:29:11 +00:00
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:
@@ -381,24 +381,28 @@
|
|||||||
"fieldname": "supplier_primary_contact",
|
"fieldname": "supplier_primary_contact",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "Primary Contact",
|
"label": "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": "primary_address",
|
"fieldname": "primary_address",
|
||||||
"fieldtype": "Text Editor",
|
"fieldtype": "Text Editor",
|
||||||
"label": "Primary Address Preview",
|
"label": "Primary Address Preview",
|
||||||
|
"no_copy": 1,
|
||||||
"read_only": 1
|
"read_only": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -406,6 +410,7 @@
|
|||||||
"fieldname": "supplier_primary_address",
|
"fieldname": "supplier_primary_address",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "Primary Address",
|
"label": "Primary Address",
|
||||||
|
"no_copy": 1,
|
||||||
"options": "Address"
|
"options": "Address"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -548,7 +553,7 @@
|
|||||||
"link_fieldname": "party"
|
"link_fieldname": "party"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"modified": "2026-05-29 13:03:41.864602",
|
"modified": "2026-05-29 16:52:59.441272",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Buying",
|
"module": "Buying",
|
||||||
"name": "Supplier",
|
"name": "Supplier",
|
||||||
|
|||||||
@@ -316,6 +316,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"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -323,6 +324,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"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -330,6 +332,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"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -341,12 +344,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 Editor",
|
"fieldtype": "Text Editor",
|
||||||
"label": "Primary Address",
|
"label": "Primary Address",
|
||||||
|
"no_copy": 1,
|
||||||
"read_only": 1
|
"read_only": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -588,14 +593,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
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Numbers this customer uses to identify your company in their own system.",
|
"description": "Numbers this customer uses to identify your company in their own system.",
|
||||||
@@ -680,7 +687,7 @@
|
|||||||
"link_fieldname": "party"
|
"link_fieldname": "party"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"modified": "2026-05-29 02:21:41.089319",
|
"modified": "2026-05-29 16:52:59.441272",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Selling",
|
"module": "Selling",
|
||||||
"name": "Customer",
|
"name": "Customer",
|
||||||
|
|||||||
Reference in New Issue
Block a user