mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-18 10:57:56 +00:00
refactor(ui): hide the primary address and contact section
The Address & Contact cards now show these details and mark which record is primary, so the section below only repeats it. Values are still stored and Customer.search_fields keeps working, since search reads the column rather than the form. Depends on frappe/frappe#41600.
This commit is contained in:
@@ -378,6 +378,7 @@
|
|||||||
{
|
{
|
||||||
"fieldname": "primary_address_and_contact_detail_section",
|
"fieldname": "primary_address_and_contact_detail_section",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
|
"hidden": 1,
|
||||||
"label": "Primary Address and Contact"
|
"label": "Primary Address and Contact"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -392,6 +393,7 @@
|
|||||||
"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",
|
||||||
|
"hidden": 1,
|
||||||
"label": "Mobile No",
|
"label": "Mobile No",
|
||||||
"no_copy": 1
|
"no_copy": 1
|
||||||
},
|
},
|
||||||
@@ -399,12 +401,14 @@
|
|||||||
"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",
|
||||||
|
"hidden": 1,
|
||||||
"label": "Email ID",
|
"label": "Email ID",
|
||||||
"no_copy": 1
|
"no_copy": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "primary_address",
|
"fieldname": "primary_address",
|
||||||
"fieldtype": "Text Editor",
|
"fieldtype": "Text Editor",
|
||||||
|
"hidden": 1,
|
||||||
"label": "Primary Address Preview",
|
"label": "Primary Address Preview",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"read_only": 1
|
"read_only": 1
|
||||||
@@ -588,7 +592,7 @@
|
|||||||
"link_fieldname": "party"
|
"link_fieldname": "party"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"modified": "2026-07-23 10:00:00.000000",
|
"modified": "2026-08-06 14:58:00.561519",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Buying",
|
"module": "Buying",
|
||||||
"name": "Supplier",
|
"name": "Supplier",
|
||||||
|
|||||||
@@ -282,7 +282,6 @@
|
|||||||
"depends_on": "eval:!doc.__islocal",
|
"depends_on": "eval:!doc.__islocal",
|
||||||
"fieldname": "address_contacts",
|
"fieldname": "address_contacts",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"label": "Address and Contact",
|
|
||||||
"options": "fa fa-map-marker"
|
"options": "fa fa-map-marker"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -314,6 +313,7 @@
|
|||||||
"description": "Select, to make the customer searchable with these fields",
|
"description": "Select, to make the customer searchable with these fields",
|
||||||
"fieldname": "primary_address_and_contact_detail",
|
"fieldname": "primary_address_and_contact_detail",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
|
"hidden": 1,
|
||||||
"label": "Primary Address and Contact"
|
"label": "Primary Address and Contact"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -328,6 +328,7 @@
|
|||||||
"fetch_from": "customer_primary_contact.mobile_no",
|
"fetch_from": "customer_primary_contact.mobile_no",
|
||||||
"fieldname": "mobile_no",
|
"fieldname": "mobile_no",
|
||||||
"fieldtype": "Read Only",
|
"fieldtype": "Read Only",
|
||||||
|
"hidden": 1,
|
||||||
"label": "Mobile No",
|
"label": "Mobile No",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"options": "Mobile"
|
"options": "Mobile"
|
||||||
@@ -336,6 +337,7 @@
|
|||||||
"fetch_from": "customer_primary_contact.email_id",
|
"fetch_from": "customer_primary_contact.email_id",
|
||||||
"fieldname": "email_id",
|
"fieldname": "email_id",
|
||||||
"fieldtype": "Read Only",
|
"fieldtype": "Read Only",
|
||||||
|
"hidden": 1,
|
||||||
"label": "Email Id",
|
"label": "Email Id",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"options": "Email"
|
"options": "Email"
|
||||||
@@ -355,6 +357,7 @@
|
|||||||
{
|
{
|
||||||
"fieldname": "primary_address",
|
"fieldname": "primary_address",
|
||||||
"fieldtype": "Text Editor",
|
"fieldtype": "Text Editor",
|
||||||
|
"hidden": 1,
|
||||||
"label": "Primary Address",
|
"label": "Primary Address",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"read_only": 1
|
"read_only": 1
|
||||||
@@ -524,19 +527,19 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "0",
|
"default": "0",
|
||||||
|
"description": "If checked, this Customer is only available for transactions in the companies listed below.",
|
||||||
"fieldname": "restrict_to_companies",
|
"fieldname": "restrict_to_companies",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Restrict to Companies",
|
"label": "Restrict to Companies",
|
||||||
"description": "If checked, this Customer is only available for transactions in the companies listed below.",
|
|
||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"depends_on": "eval:doc.restrict_to_companies",
|
||||||
"fieldname": "allowed_companies",
|
"fieldname": "allowed_companies",
|
||||||
"fieldtype": "Table MultiSelect",
|
"fieldtype": "Table MultiSelect",
|
||||||
"label": "Allowed Companies",
|
"label": "Allowed Companies",
|
||||||
"options": "Company Restriction",
|
|
||||||
"depends_on": "eval:doc.restrict_to_companies",
|
|
||||||
"mandatory_depends_on": "eval:doc.restrict_to_companies",
|
"mandatory_depends_on": "eval:doc.restrict_to_companies",
|
||||||
|
"options": "Company Restriction",
|
||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -727,7 +730,7 @@
|
|||||||
"link_fieldname": "party"
|
"link_fieldname": "party"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"modified": "2026-07-23 12:00:00.000000",
|
"modified": "2026-08-06 15:14:35.049972",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Selling",
|
"module": "Selling",
|
||||||
"name": "Customer",
|
"name": "Customer",
|
||||||
|
|||||||
Reference in New Issue
Block a user