diff --git a/erpnext/edi/doctype/common_code/common_code.json b/erpnext/edi/doctype/common_code/common_code.json index b2cb43fa575..f753bc94b6b 100644 --- a/erpnext/edi/doctype/common_code/common_code.json +++ b/erpnext/edi/doctype/common_code/common_code.json @@ -6,6 +6,7 @@ "engine": "InnoDB", "field_order": [ "code_list", + "canonical_uri", "title", "common_code", "description", @@ -71,10 +72,17 @@ "in_list_view": 1, "label": "Description", "max_height": "60px" + }, + { + "fetch_from": "code_list.canonical_uri", + "fieldname": "canonical_uri", + "fieldtype": "Data", + "label": "Canonical URI" } ], + "grid_page_length": 50, "links": [], - "modified": "2024-11-06 07:46:17.175687", + "modified": "2025-10-04 17:22:28.176155", "modified_by": "Administrator", "module": "EDI", "name": "Common Code", @@ -94,10 +102,11 @@ "write": 1 } ], + "row_format": "Dynamic", "search_fields": "common_code,description", "show_title_field_in_link": 1, "sort_field": "creation", "sort_order": "DESC", "states": [], "title_field": "title" -} \ No newline at end of file +} diff --git a/erpnext/edi/doctype/common_code/common_code.py b/erpnext/edi/doctype/common_code/common_code.py index d558b2d282f..d1fd88350be 100644 --- a/erpnext/edi/doctype/common_code/common_code.py +++ b/erpnext/edi/doctype/common_code/common_code.py @@ -22,6 +22,7 @@ class CommonCode(Document): additional_data: DF.Code | None applies_to: DF.Table[DynamicLink] + canonical_uri: DF.Data | None code_list: DF.Link common_code: DF.Data description: DF.SmallText | None