wenhongquan 7 месяцев назад
Родитель
Сommit
ac64139282
2 измененных файлов с 33 добавлено и 0 удалено
  1. 29 0
      uperp/fixtrues/workspace.json
  2. 4 0
      uperp/hooks.py

+ 29 - 0
uperp/fixtrues/workspace.json

@@ -0,0 +1,29 @@
+[
+    {
+        "doctype": "Workspace",
+        "name": "uperp",
+        "title": "uperp",
+        "icon": "icon-name",
+        "indicator_color": "blue",
+        "is_standard": 1,
+        "module": "uperp",
+        "charts": [],
+        "shortcuts": [],
+        "cards": [
+            {
+                "card_name": "Your Custom Card",
+                "label": "test",
+                "hidden": 0,
+                "links": [
+                    {
+                        "label": "test",
+                        "type": "Page",
+                        "name": "your-custom-page",
+                        "icon": "icon-name",
+                        "description": "页面描述"
+                    }
+                ]
+            }
+        ]
+    }
+]

+ 4 - 0
uperp/hooks.py

@@ -242,3 +242,7 @@ after_install = "uperp.install.after_install"
 # 	"Logging DocType Name": 30  # days to retain logs
 # }
 
+
+fixtures = [
+    "Workspace"
+]