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
0cb34305
Commit
0cb34305
authored
Mar 14, 2025
by
夏超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 东联同步功能优化
parent
c8445a66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
sdddl_project/models/inherit_production_task.py
+3
-1
No files found.
sdddl_project/models/inherit_production_task.py
View file @
0cb34305
...
@@ -138,7 +138,7 @@ class InheritProductionTask(models.Model):
...
@@ -138,7 +138,7 @@ class InheritProductionTask(models.Model):
self
.
write
({
self
.
write
({
"work_order_ids"
:
self
.
change_routing_id_work_order
(
routing_id
)
"work_order_ids"
:
self
.
change_routing_id_work_order
(
routing_id
)
})
})
el
se
:
el
if
not
self
.
routing_id
.
state
==
"确认"
:
routing_id
=
self
.
routing_id
.
copy
()
routing_id
=
self
.
routing_id
.
copy
()
routing_id
.
update
({
routing_id
.
update
({
"name"
:
f
"{routing_id.name}"
"name"
:
f
"{routing_id.name}"
...
@@ -148,6 +148,8 @@ class InheritProductionTask(models.Model):
...
@@ -148,6 +148,8 @@ class InheritProductionTask(models.Model):
self
.
write
({
self
.
write
({
"work_order_ids"
:
self
.
change_routing_id_work_order
(
routing_id
)
"work_order_ids"
:
self
.
change_routing_id_work_order
(
routing_id
)
})
})
else
:
routing_id
=
self
.
routing_id
return
{
return
{
"name"
:
f
"工艺设计({self.code})"
,
"name"
:
f
"工艺设计({self.code})"
,
"type"
:
"ir.actions.client"
,
"type"
:
"ir.actions.client"
,
...
...
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