stock function fields of stock.location compute wrong quanties
Bug #800301 reported by
Omar (Pexego)
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP R&D Addons Team 2 |
Bug Description
Hi,
stock_real, stock_virtual, stock_real_value and stock_virtual_value function fields of stock.location, compute wrong stock quantities if you don't pass in context the product, because in its function _product_value when obtaining the products whose get the stock, it gets products from currently location origin moves + currently location destination moves, then it will have duplicate products if in this location had stock entries and outputs of same product. Check this logic, I see this issue showing these fields in stock.locations tree view. I attach a patch.
Regards
Changed in openobject-addons: | |
status: | New → Incomplete |
To post a comment you must log in.
Hello Omar,
I have checked your issue and patch.
But I did not get where you faced the problem or in which condition you have faced the wrong quantity.
So would you please provide more information on this or provide proper example on this.
Thanks and waiting for your reply!