diff --git a/test_frappe/test_frappe/doctype/__init__.py b/test_frappe/test_frappe/doctype/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/test_frappe/test_frappe/doctype/asset/__init__.py b/test_frappe/test_frappe/doctype/asset/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/test_frappe/test_frappe/doctype/asset/asset.js b/test_frappe/test_frappe/doctype/asset/asset.js new file mode 100644 index 0000000..335f799 --- /dev/null +++ b/test_frappe/test_frappe/doctype/asset/asset.js @@ -0,0 +1,8 @@ +// Copyright (c) 2023, Alex and contributors +// For license information, please see license.txt + +// frappe.ui.form.on("Asset", { +// refresh(frm) { + +// }, +// }); diff --git a/test_frappe/test_frappe/doctype/asset/asset.json b/test_frappe/test_frappe/doctype/asset/asset.json new file mode 100644 index 0000000..56b48e7 --- /dev/null +++ b/test_frappe/test_frappe/doctype/asset/asset.json @@ -0,0 +1,74 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2023-11-18 15:10:38.345895", + "doctype": "DocType", + "engine": "InnoDB", + "field_order": [ + "inventarnummer", + "hostname", + "assettyp" + ], + "fields": [ + { + "fieldname": "inventarnummer", + "fieldtype": "Data", + "in_filter": 1, + "in_global_search": 1, + "in_list_view": 1, + "in_preview": 1, + "in_standard_filter": 1, + "label": "Inventarnummer", + "reqd": 1, + "unique": 1 + }, + { + "fieldname": "hostname", + "fieldtype": "Data", + "in_filter": 1, + "in_global_search": 1, + "in_list_view": 1, + "in_preview": 1, + "in_standard_filter": 1, + "label": "Hostname", + "reqd": 1, + "search_index": 1 + }, + { + "fieldname": "assettyp", + "fieldtype": "Select", + "in_filter": 1, + "in_global_search": 1, + "in_list_view": 1, + "in_preview": 1, + "in_standard_filter": 1, + "label": "Asset-Typ", + "options": "PC\nLaptop\nMonitor", + "reqd": 1 + } + ], + "index_web_pages_for_search": 1, + "links": [], + "modified": "2023-11-18 15:13:29.985217", + "modified_by": "Administrator", + "module": "Test Frappe", + "name": "Asset", + "owner": "Administrator", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, + "write": 1 + } + ], + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/test_frappe/test_frappe/doctype/asset/asset.py b/test_frappe/test_frappe/doctype/asset/asset.py new file mode 100644 index 0000000..826baea --- /dev/null +++ b/test_frappe/test_frappe/doctype/asset/asset.py @@ -0,0 +1,9 @@ +# Copyright (c) 2023, Alex and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + + +class Asset(Document): + pass diff --git a/test_frappe/test_frappe/doctype/asset/test_asset.py b/test_frappe/test_frappe/doctype/asset/test_asset.py new file mode 100644 index 0000000..d06e96b --- /dev/null +++ b/test_frappe/test_frappe/doctype/asset/test_asset.py @@ -0,0 +1,9 @@ +# Copyright (c) 2023, Alex and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestAsset(FrappeTestCase): + pass