← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 800301] Re: stock function fields of stock.location compute wrong quanties

 

Hello Omar,

Thanks for your quick reply!
I have again checked your issue and I did not find wrong stock quantities computation in stock location.

I have checked with several stock moves, then I have opened the stock location via product->"Stock by location" act_window and see that the calculated quantity which is as normal.
I have also checked with your patch and print the both the values, the only difference I have found that in your patch's method, I have not seen the duplicate product id in products_by_location. But in our code I have been see the same product id in more than 1 times.

But I did not faced the wrong value of real stock and virtual stock.

So would you please provide us the proper example or video on this.

Thanks and waiting for your reply!

-- 
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