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
77a9ae74
Commit
77a9ae74
authored
Mar 14, 2025
by
夏超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 工艺设计
parent
5d9b78a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sdddl_project/models/inherit_production_task.py
+2
-2
No files found.
sdddl_project/models/inherit_production_task.py
View file @
77a9ae74
...
@@ -131,7 +131,7 @@ class InheritProductionTask(models.Model):
...
@@ -131,7 +131,7 @@ class InheritProductionTask(models.Model):
raise
ValidationError
(
"该任务已报工,无法生成新的工艺设计。"
)
raise
ValidationError
(
"该任务已报工,无法生成新的工艺设计。"
)
if
not
self
.
routing_id
:
if
not
self
.
routing_id
:
routing_id
=
self
.
env
[
"roke.routing"
]
.
create
({
routing_id
=
self
.
env
[
"roke.routing"
]
.
create
({
"name"
:
f
"{self.product_id.name}
({self.code})
"
or
""
"name"
:
f
"{self.product_id.name}"
or
""
})
})
self
.
write
({
"routing_id"
:
routing_id
.
id
})
self
.
write
({
"routing_id"
:
routing_id
.
id
})
self
.
product_id
.
write
({
"routing_id"
:
routing_id
.
id
})
self
.
product_id
.
write
({
"routing_id"
:
routing_id
.
id
})
...
@@ -141,7 +141,7 @@ class InheritProductionTask(models.Model):
...
@@ -141,7 +141,7 @@ class InheritProductionTask(models.Model):
else
:
else
:
routing_id
=
self
.
routing_id
.
copy
()
routing_id
=
self
.
routing_id
.
copy
()
routing_id
.
update
({
routing_id
.
update
({
"name"
:
f
"{routing_id.name}
({self.code})
"
"name"
:
f
"{routing_id.name}"
})
})
self
.
write
({
"routing_id"
:
routing_id
.
id
})
self
.
write
({
"routing_id"
:
routing_id
.
id
})
self
.
product_id
.
write
({
"routing_id"
:
routing_id
.
id
})
self
.
product_id
.
write
({
"routing_id"
:
routing_id
.
id
})
...
...
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