import inventory

Bug #1045334 reported by Fabrice Actergal @ Taktik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Low
OpenERP Publisher's Warranty Team

Bug Description

Hello,

We discovered a bug in the wizard "Import Inventary" (openobject-addons/stock/wizard/stock_fill_inventory.py). The wizard does not take in account the case when a move has the same source and destination location.

Scenario :

1) Create a product.
2) Create a stock.move with quantity = 15, source location = supplier and dest location = stock and validate it
3) Create a stock.move with quantity = 10, source location = stock and dest location = stock and validate it
4) Create a stock.move with quantity = 5, source location = stock and dest location = customer and validate it

The final stock for this product should be 15 - (10 + 10) - 5 = 10, but the "Import Inventory" gives a result of 20.

This is because the test
    if move.location_dest_id.id == move.location_id.id:
        continue # ?
is never done and the wizard simply check if the dest location is stock, and if it is, it adds the quantity

Tags: maintenance

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Low
status: Confirmed → In Progress
Changed in openobject-addons:
status: In Progress → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.