Commit a8dd3b8d by liuyongcheng

Merge branch 'sdddl_project' of http://git.rokedata.com/dws/dwsproject into sdddl_project

parents 660a95e6 14d36200
from . import roke_work_order from . import roke_work_order
from . import orke_dws_process_design
from odoo.addons.roke_workstation_api.controllers.process_design import RokeDWSProcessDesign
import logging
import os
from jinja2 import FileSystemLoader, Environment
import pytz
from odoo import models, fields, api, http, SUPERUSER_ID, _
_logger = logging.getLogger(__name__)
# 设置查找html文件的路径
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
templateloader = FileSystemLoader(searchpath=BASE_DIR + "/static")
env = Environment(loader=templateloader)
class InheritRokeWorkstationWorkOrder(RokeDWSProcessDesign):
@http.route('/roke/pd/index', type='http', auth='public', csrf=False, cors="*")
def roke_index_demo_module(self, **kwargs):
values = {}
template = env.get_template('/src/html/view/index.html')
html = template.render(values)
return html
@font-face { @font-face {
font-family: "iconfont"; /* Project id 4723859 */ font-family: "iconfont"; /* Project id 4723859 */
src: url('iconfont.woff2?t=1731743989340') format('woff2'), src: url('iconfont.woff2?t=1734059513726') format('woff2'),
url('iconfont.woff?t=1731743989340') format('woff'), url('iconfont.woff?t=1734059513726') format('woff'),
url('iconfont.ttf?t=1731743989340') format('truetype'); url('iconfont.ttf?t=1734059513726') format('truetype');
} }
.iconfont { .iconfont {
...@@ -13,6 +13,18 @@ ...@@ -13,6 +13,18 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.icon-zhiding_dingzhi:before {
content: "\e846";
}
.icon-sangedian:before {
content: "\e727";
}
.icon-jinggao:before {
content: "\e6aa";
}
.icon-BOM1:before { .icon-BOM1:before {
content: "\e707"; content: "\e707";
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment