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
1199c370
Commit
1199c370
authored
Nov 25, 2024
by
夏超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 修改工序判断
parent
a7b9201d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
jzjx_project/models/inherit_production_task.py
+6
-6
No files found.
jzjx_project/models/inherit_production_task.py
View file @
1199c370
...
...
@@ -100,11 +100,11 @@ class InheritProductionTask(models.Model):
res
=
super
(
InheritProductionTask
,
self
)
.
_create_work_order_get_values
(
task
,
routing_line
)
rounding_type
=
self
.
env
[
'ir.config_parameter'
]
.
sudo
()
.
get_param
(
'e_bom.material.demand.rounding'
,
default
=
"精确计算"
)
if
routing_line
.
process_id
.
name
in
"切割"
:
if
"切割"
in
routing_line
.
process_id
.
name
:
plan_qty
=
task
.
spare_parts_qty
elif
routing_line
.
process_id
.
name
in
"压铆"
:
elif
"压铆"
in
routing_line
.
process_id
.
name
:
plan_qty
=
task
.
press_riveting_qty
elif
routing_line
.
process_id
.
name
in
"折弯"
:
elif
"折弯"
in
routing_line
.
process_id
.
name
:
plan_qty
=
task
.
bending_qty
else
:
plan_qty
=
task
.
plan_qty
*
routing_line
.
multiple
...
...
@@ -122,11 +122,11 @@ class InheritProductionTask(models.Model):
"""
res
=
super
(
InheritProductionTask
,
self
)
.
_get_new_work_order_data
(
routing_line
,
product
,
plan_qty
,
task_type
)
rounding_type
=
self
.
env
[
'ir.config_parameter'
]
.
sudo
()
.
get_param
(
'e_bom.material.demand.rounding'
,
default
=
"精确计算"
)
if
routing_line
.
process_id
.
name
in
"切割"
:
if
"切割"
in
routing_line
.
process_id
.
name
:
plan_qty
=
self
.
spare_parts_qty
elif
routing_line
.
process_id
.
name
in
"压铆"
:
elif
"压铆"
in
routing_line
.
process_id
.
name
:
plan_qty
=
self
.
press_riveting_qty
elif
routing_line
.
process_id
.
name
in
"折弯"
:
elif
"折弯"
in
routing_line
.
process_id
.
name
:
plan_qty
=
self
.
bending_qty
else
:
plan_qty
=
self
.
plan_qty
*
routing_line
.
multiple
...
...
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