diff --git a/msp/msp/doctype/it_object/it_object.json b/msp/msp/doctype/it_object/it_object.json index d5c0771..277e72e 100644 --- a/msp/msp/doctype/it_object/it_object.json +++ b/msp/msp/doctype/it_object/it_object.json @@ -23,6 +23,8 @@ "description_section", "description", "image", + "linked_objects_section", + "linked_objects", "network_config_section", "ip_adresses", "external_links_section", @@ -164,11 +166,22 @@ "fieldtype": "Text Editor", "label": "Location Full Path", "read_only": 1 + }, + { + "fieldname": "linked_objects_section", + "fieldtype": "Section Break", + "label": "Linked Objects" + }, + { + "fieldname": "linked_objects", + "fieldtype": "Table", + "label": "Linked Objects", + "options": "IT Object Linked Object" } ], "image_field": "image", "links": [], - "modified": "2022-09-06 16:18:52.084632", + "modified": "2023-03-02 09:58:05.589925", "modified_by": "Administrator", "module": "MSP", "name": "IT Object", diff --git a/msp/msp/doctype/it_object_linked_object/__init__.py b/msp/msp/doctype/it_object_linked_object/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/msp/msp/doctype/it_object_linked_object/it_object_linked_object.json b/msp/msp/doctype/it_object_linked_object/it_object_linked_object.json new file mode 100644 index 0000000..201b9ec --- /dev/null +++ b/msp/msp/doctype/it_object_linked_object/it_object_linked_object.json @@ -0,0 +1,55 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2023-03-02 09:56:16.925783", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "document_type", + "document_id", + "title", + "description" + ], + "fields": [ + { + "fieldname": "document_type", + "fieldtype": "Link", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Document Type", + "options": "DocType" + }, + { + "fieldname": "document_id", + "fieldtype": "Dynamic Link", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Document ID", + "options": "document_type" + }, + { + "fieldname": "title", + "fieldtype": "Data", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Title" + }, + { + "fieldname": "description", + "fieldtype": "Markdown Editor", + "label": "Description" + } + ], + "index_web_pages_for_search": 1, + "istable": 1, + "links": [], + "modified": "2023-03-02 09:58:50.098939", + "modified_by": "Administrator", + "module": "MSP", + "name": "IT Object Linked Object", + "owner": "Administrator", + "permissions": [], + "sort_field": "modified", + "sort_order": "DESC" +} \ No newline at end of file diff --git a/msp/msp/doctype/it_object_linked_object/it_object_linked_object.py b/msp/msp/doctype/it_object_linked_object/it_object_linked_object.py new file mode 100644 index 0000000..446fc2b --- /dev/null +++ b/msp/msp/doctype/it_object_linked_object/it_object_linked_object.py @@ -0,0 +1,8 @@ +# Copyright (c) 2023, itsdave GmbH and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + +class ITObjectLinkedObject(Document): + pass