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
df4b246c
Commit
df4b246c
authored
Jan 21, 2025
by
夏超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 领料单数据
parent
8cd6f1ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
sdddl_project/models/inherit_production_task.py
+4
-0
No files found.
sdddl_project/models/inherit_production_task.py
View file @
df4b246c
...
@@ -8,6 +8,9 @@ from datetime import timedelta
...
@@ -8,6 +8,9 @@ from datetime import timedelta
import
pymssql
import
pymssql
from
odoo
import
models
,
fields
,
api
,
_
from
odoo
import
models
,
fields
,
api
,
_
from
odoo.exceptions
import
ValidationError
from
odoo.exceptions
import
ValidationError
import
logging
_logger
=
logging
.
getLogger
(
__name__
)
class
InheritProductionTask
(
models
.
Model
):
class
InheritProductionTask
(
models
.
Model
):
...
@@ -163,6 +166,7 @@ class InheritProductionTask(models.Model):
...
@@ -163,6 +166,7 @@ class InheritProductionTask(models.Model):
cur
.
close
()
cur
.
close
()
conn
.
close
()
conn
.
close
()
bom_res
=
[]
bom_res
=
[]
_logger
.
info
(
f
"数据: {rows}"
)
for
v
in
rows
:
for
v
in
rows
:
product
=
self
.
env
[
"roke.product"
]
.
sudo
()
.
search
([(
"code"
,
"="
,
v
.
get
(
"wlbh"
,
""
))],
limit
=
1
)
product
=
self
.
env
[
"roke.product"
]
.
sudo
()
.
search
([(
"code"
,
"="
,
v
.
get
(
"wlbh"
,
""
))],
limit
=
1
)
bom_res
.
append
({
bom_res
.
append
({
...
...
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