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
4f051f05
Commit
4f051f05
authored
Jan 11, 2025
by
夏超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 修改去掉完工数据
parent
2cfd7581
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sdddl_project/controllers/inherit_production_task.py
+2
-2
No files found.
sdddl_project/controllers/inherit_production_task.py
View file @
4f051f05
...
...
@@ -44,7 +44,7 @@ class InheritRokeWorkstationProductionTask(RokeWorkstationProductionTask):
(
"process_id"
,
"in"
,
process_list
),
(
"state"
,
"in"
,
[
"未完工"
,
"暂停"
])
]
domain
=
expression
.
OR
([
domain
,
[(
"work_center_id"
,
"="
,
workstation_id
)]])
domain
=
expression
.
OR
([
domain
,
[(
"work_center_id"
,
"="
,
workstation_id
)
,
(
"state"
,
"in"
,
[
"未完工"
,
"暂停"
])
]])
if
priority
:
domain
.
append
((
'task_id.priority'
,
'='
,
priority
))
if
customer_id
:
...
...
@@ -217,7 +217,7 @@ class InheritRokeWorkstationWorkOrder(RokeWorkstationWorkOrder):
(
"state"
,
"in"
,
[
"未完工"
,
"暂停"
]),
(
"work_center_id"
,
"="
,
False
)
]
domain
=
expression
.
OR
([
domain
,
[(
"work_center_id"
,
"="
,
work_center_id
)]])
domain
=
expression
.
OR
([
domain
,
[(
"work_center_id"
,
"="
,
work_center_id
)
,
(
"state"
,
"in"
,
[
"未完工"
,
"暂停"
])
]])
domain
=
expression
.
AND
([[(
"task_id"
,
"="
,
task_id
)],
domain
])
if
work_order_id
:
domain
=
[(
"id"
,
"="
,
work_order_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