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
f23c6238
Commit
f23c6238
authored
Jan 08, 2025
by
夏超
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/sdddl_project' into sdddl_project
parents
34a92318
ac43058e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
sdddl_project/controllers/roke_work_order.py
+4
-1
No files found.
sdddl_project/controllers/roke_work_order.py
View file @
f23c6238
...
@@ -24,7 +24,10 @@ class InheritEntrustOrderMain(Main):
...
@@ -24,7 +24,10 @@ class InheritEntrustOrderMain(Main):
previours_work_order
=
line
.
_get_previous_wo
()
previours_work_order
=
line
.
_get_previous_wo
()
plan_qty
=
line
.
plan_qty
-
sum
(
plan_qty
=
line
.
plan_qty
-
sum
(
previours_work_order
.
record_ids
.
mapped
(
'unqualified_qty'
))
if
previours_work_order
else
line
.
plan_qty
previours_work_order
.
record_ids
.
mapped
(
'unqualified_qty'
))
if
previours_work_order
else
line
.
plan_qty
res
.
update
({
"plan_qty"
:
plan_qty
})
res
.
update
({
"plan_qty"
:
plan_qty
,
"code"
:
line
.
code
})
return
res
return
res
@http.route
(
'/entrust/send/product'
,
type
=
'json'
,
method
=
[
"POST"
,
"OPTIONS"
],
auth
=
'user'
,
cors
=
'*'
,
csrf
=
False
)
@http.route
(
'/entrust/send/product'
,
type
=
'json'
,
method
=
[
"POST"
,
"OPTIONS"
],
auth
=
'user'
,
cors
=
'*'
,
csrf
=
False
)
...
...
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