c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #27889
[Bug 800301] Re: stock function fields of stock.location compute wrong quanties
Hi Amit,
But you mustn't test "Stock by location", you must test to add: stock_real, stock_virtual, stock_real_value and stock_virtual_value fields in stock location tree view, because in "Stock by location" adds values in context to filter quantity get method, but opening tree view with these fields, it hasn't values in context to filter quantity get method, and sum all quantities for all products in location. If you have output moves and input moves of same product in location openerp's source duplicates the quantities sum(output qty + input qty) with my patch you avoid this behavior.
In my last message I said that you compare tree quantities against "Stock by location".
Regards,
** Changed in: openobject-addons
Status: Incomplete => New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/800301
Title:
stock function fields of stock.location compute wrong quanties
Status in OpenERP Modules (addons):
New
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/800301/+subscriptions
References