doctype asset angelegt

This commit is contained in:
Alexander Gabriel 2023-11-18 14:15:20 +00:00
parent b4b7b8d195
commit 556a3f1c62
6 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,8 @@
// Copyright (c) 2023, Alex and contributors
// For license information, please see license.txt
// frappe.ui.form.on("Asset", {
// refresh(frm) {
// },
// });

View File

@ -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": []
}

View File

@ -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

View File

@ -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