Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dwsproject
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dws
dwsproject
Commits
a013b686
Commit
a013b686
authored
Jan 09, 2025
by
夏超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 修改任务的工艺设计
parent
7009e38b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
sdddl_project/controllers/__init__.py
+1
-0
sdddl_project/controllers/orke_dws_process_design.py
+22
-0
sdddl_project/static/src/html/view/index.html
+0
-0
No files found.
sdddl_project/controllers/__init__.py
View file @
a013b686
from
.
import
roke_work_order
from
.
import
roke_work_order
from
.
import
orke_dws_process_design
sdddl_project/controllers/orke_dws_process_design.py
0 → 100644
View file @
a013b686
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
sdddl_project/static/src/html/view/index.html
View file @
a013b686
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment