Fill inventory is incorrect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Addons Team 2 |
Bug Description
Current fill_inventory method only takes into account incoming moves (location_
moves in and out should be taken into account to reflect the physical stock of the location.
I propose the following changes that solves this issue on my side:
for location in location_ids:
datas = {}
for move in move_obj.browse(cr, uid, move_ids, context=context):
#EC increase the quantity as the goods are sent to the location
if move.location_
#EC decrease the quantity as the goods are sent from the location
if move.location_
#EC strange case where dest location would be identical to origin
if move.location_
if datas.get((prod_id, lot_id)):
if datas:
if not flag:
raise osv.except_
for stock_move in res.values():
for stock_move_details in stock_move.
if stock_move_
return {'type': 'ir.actions.
Related branches
- qdp (OpenERP): Disapprove
-
Diff: 50 lines (+22/-12)1 file modifiedstock/wizard/stock_fill_inventory.py (+22/-12)
Hello ,
I am confirming this issue.
For more reference I have attached a related video.