stock wrong computation of internal moves in get_product_available
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Addons Team 2 |
Bug Description
this is a rare hidden bug and will ony happen if
* what is only 'in' OR 'out'
* multiple internal location are selected
* stock moves between the selected internal location exist
if 'in' in what:
# all moves from a location out of the set to a location in the set
>>> 'where location_id NOT IN %s '\
'' + (prodlot_id and ('and prodlot_id = ' + str(prodlot_id)) or '') + ' '\
results = cr.fetchall()
if 'out' in what:
# all moves from a location in the set to a location out of the set
>>> 'and location_dest_id NOT IN %s '\
'' + (prodlot_id and ('and prodlot_id = ' + str(prodlot_id)) or '') + ' '\
this can be fixed by elimination of the marked conditions
see patch
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 30 lines (+2/-4)1 file modifiedstock/product.py (+2/-4)
Changed in openobject-addons: | |
status: | Fix Committed → Fix Released |
milestone: | none → 7.0 |
Hello Dr Ferdinand,
I have checked your issue as well as patch and I am totally agree with you as per your patch.
We don't have to check location_id for 'in' picking as well as don't have to check destination location for 'out' picking.
Thanks!