doctype asset angelegt
This commit is contained in:
parent
b4b7b8d195
commit
556a3f1c62
0
test_frappe/test_frappe/doctype/__init__.py
Normal file
0
test_frappe/test_frappe/doctype/__init__.py
Normal file
0
test_frappe/test_frappe/doctype/asset/__init__.py
Normal file
0
test_frappe/test_frappe/doctype/asset/__init__.py
Normal file
8
test_frappe/test_frappe/doctype/asset/asset.js
Normal file
8
test_frappe/test_frappe/doctype/asset/asset.js
Normal 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) {
|
||||||
|
|
||||||
|
// },
|
||||||
|
// });
|
74
test_frappe/test_frappe/doctype/asset/asset.json
Normal file
74
test_frappe/test_frappe/doctype/asset/asset.json
Normal 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": []
|
||||||
|
}
|
9
test_frappe/test_frappe/doctype/asset/asset.py
Normal file
9
test_frappe/test_frappe/doctype/asset/asset.py
Normal 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
|
9
test_frappe/test_frappe/doctype/asset/test_asset.py
Normal file
9
test_frappe/test_frappe/doctype/asset/test_asset.py
Normal 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
|
Loading…
Reference in New Issue
Block a user