wenhongquan 1 mesiac pred
rodič
commit
6f8dc3d4bc
2 zmenil súbory, kde vykonal 10 pridanie a 4 odobranie
  1. 8 2
      upsystem/hooks.py
  2. 2 2
      upsystem/www/tms_order.py

+ 8 - 2
upsystem/hooks.py

@@ -18,6 +18,11 @@ pages = [
         "name": "my_erpnext_page",
         "template": "upsystem/templates/pages/my_erpnext_page.html",
         "controller": "upsystem.www.my_erpnext_page.get_context"
+    },
+	{
+        "name": "tmsorder",
+        "template": "upsystem/templates/pages/tms_order.html",
+        "controller": "upsystem.www.tms_order.get_context"
     }
 ]
 
@@ -28,6 +33,7 @@ website_route_rules = [
         "from_route": "/upsystem/my_erpnext_page",
         "to_route": "my_erpnext_page"
     }
+
 ]
 
 # Each item in the list will be shown as an app in the apps page
@@ -46,12 +52,12 @@ website_route_rules = [
 
 # include js, css files in header of desk.html
 # app_include_css = "/assets/upsystem/css/upsystem.css"
-app_include_js = "/assets/upsystem/js/test.js"
+# app_include_js = "/assets/upsystem/js/test.js"
 
 # include js, css files in header of web template
 # web_include_css = "/assets/upsystem/css/upsystem.css"
 # web_include_js = "/assets/upsystem/js/upsystem.js"
-web_include_js = "/assets/upsystem/js/test.js"
+# web_include_js = "/assets/upsystem/js/test.js"
 
 # include custom scss in every website theme (without file extension ".scss")
 # website_theme_scss = "upsystem/public/scss/website"

+ 2 - 2
upsystem/www/tms_order.py

@@ -3,8 +3,8 @@ import frappe
 def get_context(context):
     context.title = "TMS Order Center"
     context.description = "Transportation Management System - Order Management Center"
-    
+
     # Add any additional context data here
     context.page_type = "order_center"
-    
+
     return context