Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
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
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
011a4cc7
Commit
011a4cc7
authored
Jul 29, 2021
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix warning on make_immediate_transfer
parent
4b9e24a8
Pipeline
#1262
passed with stage
in 1 minute 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
+1
-0
models.py
reception/models.py
+1
-0
No files found.
reception/models.py
View file @
011a4cc7
...
...
@@ -151,6 +151,7 @@ class CagetteReception(models.Model):
self
.
o_api
.
update
(
'stock.move.operation.link'
,
[
linked_move_op_id
],
{
'qty'
:
received_products
[
pack
[
'product_id'
][
0
]]})
pfields
[
'product_uom_qty'
]
=
received_qty
self
.
o_api
.
update
(
'stock.move'
,
[
move_id
],
pfields
)
del
pfields
[
'product_uom_qty'
]
# field not in stock.pack.operation
pfields
[
'qty_done'
]
=
pfields
[
'product_qty'
]
=
received_qty
self
.
o_api
.
update
(
'stock.pack.operation'
,
[
int
(
pack
[
'id'
])],
pfields
)
processed_lines
+=
1
...
...
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