diff --git a/erpnext/buying/doctype/supplier/supplier.json b/erpnext/buying/doctype/supplier/supplier.json index 1315c5cb9e9..d8c0eea6047 100644 --- a/erpnext/buying/doctype/supplier/supplier.json +++ b/erpnext/buying/doctype/supplier/supplier.json @@ -12,6 +12,7 @@ "field_order": [ "naming_series", "supplier_name", + "alias", "supplier_type", "gender", "column_break0", @@ -540,6 +541,13 @@ { "fieldname": "section_break_pgad", "fieldtype": "Section Break" + }, + { + "fieldname": "alias", + "fieldtype": "Data", + "in_global_search": 1, + "label": "Alias", + "unique": 1 } ], "grid_page_length": 50, @@ -553,7 +561,7 @@ "link_fieldname": "party" } ], - "modified": "2026-05-29 16:52:59.441272", + "modified": "2026-06-22 12:23:09.241125", "modified_by": "Administrator", "module": "Buying", "name": "Supplier", @@ -613,7 +621,7 @@ ], "quick_entry": 1, "row_format": "Dynamic", - "search_fields": "supplier_group", + "search_fields": "supplier_group, alias", "show_name_in_global_search": 1, "sort_field": "creation", "sort_order": "ASC", diff --git a/erpnext/buying/doctype/supplier/supplier.py b/erpnext/buying/doctype/supplier/supplier.py index faa47509b07..1de54ed9313 100644 --- a/erpnext/buying/doctype/supplier/supplier.py +++ b/erpnext/buying/doctype/supplier/supplier.py @@ -39,6 +39,7 @@ class Supplier(TransactionBase): from erpnext.utilities.doctype.portal_user.portal_user import PortalUser accounts: DF.Table[PartyAccount] + alias: DF.Data | None allow_purchase_invoice_creation_without_purchase_order: DF.Check allow_purchase_invoice_creation_without_purchase_receipt: DF.Check companies: DF.Table[AllowedToTransactWith] diff --git a/erpnext/selling/doctype/customer/customer.json b/erpnext/selling/doctype/customer/customer.json index f286658d87b..fad5836650b 100644 --- a/erpnext/selling/doctype/customer/customer.json +++ b/erpnext/selling/doctype/customer/customer.json @@ -13,6 +13,7 @@ "basic_info", "naming_series", "customer_name", + "alias", "customer_type", "gender", "column_break0", @@ -674,6 +675,13 @@ { "fieldname": "credit_limit_column", "fieldtype": "Column Break" + }, + { + "fieldname": "alias", + "fieldtype": "Data", + "in_global_search": 1, + "label": "Alias", + "unique": 1 } ], "icon": "fa fa-user", @@ -687,7 +695,7 @@ "link_fieldname": "party" } ], - "modified": "2026-05-29 16:52:59.441272", + "modified": "2026-06-22 12:23:19.196991", "modified_by": "Administrator", "module": "Selling", "name": "Customer", @@ -766,7 +774,7 @@ ], "quick_entry": 1, "row_format": "Dynamic", - "search_fields": "customer_group,territory, mobile_no,primary_address", + "search_fields": "customer_group,territory, mobile_no,primary_address, alias", "show_name_in_global_search": 1, "sort_field": "creation", "sort_order": "DESC", diff --git a/erpnext/selling/doctype/customer/customer.py b/erpnext/selling/doctype/customer/customer.py index 6a95a580d4c..e8ba3eab04d 100644 --- a/erpnext/selling/doctype/customer/customer.py +++ b/erpnext/selling/doctype/customer/customer.py @@ -55,6 +55,7 @@ class Customer(TransactionBase): account_manager: DF.Link | None accounts: DF.Table[PartyAccount] + alias: DF.Data | None companies: DF.Table[AllowedToTransactWith] credit_limits: DF.Table[CustomerCreditLimit] customer_details: DF.Text | None