← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 787717] Re: Physical Inventory - wrong calculation

 

I believe I know what the problem is:
the CPU3 is in 2 different locations.  In the Physical Inventory screen, I enter the location Stock, and it writes the quantity of EVERY LOCATION, not just the Stock location.

It should only show how many are in the location that I select.

Here is the change in the code:
addons/stocks.py, 
class: stock_inventory_line 
def on_change_product_id
line 2647

change

amount = self.pool.get('stock.location')._product_get(cr, uid,
location_id, [product], {'uom': uom, 'to_date': to_date})[product]

by

amount = self.pool.get('stock.location')._product_get(cr, uid,
location_id, [product], {'uom': uom, 'to_date': to_date,
'compute_child': False})[product]

Because we dont wanna see then quantity for all children, we wanna
modify inventory for the selected location

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

Title:
  Physical Inventory - wrong calculation

Status in OpenERP Server:
  New

Bug description:
  v6.0.2

  I do a Physical Inventory.  Before the inventory my CPU3 has 8 real
  stock and 8 virtual stock.

  In the physical inventory screen I mark "3" (my actual physical stock)

  Instead of setting my inventory to "3", it make a movement of 3 from inventory loss into stock, and
  so I end up with 11 CPUS.


References