[6.0] inventory : wrong stocks moves generated when using production lot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 2 | ||
6.0 |
Fix Released
|
Medium
|
OpenERP Publisher's Warranty Team |
Bug Description
For each inventory line with a production lot, the generated stock move must be based on the stock level for that (Product,
For example I create an initial inventory:
Location, Product, Qty, Lot#
Stock, FAN, 10, 0000001
Stock, FAN, 10, 0000002
Then, 2 stock moves are generated from Inventory Loss to Stock. That's correct.
I create new inventory:
Location, Product, Qty, Lot#
Stock, FAN, 2, 0000003
Then, 1 stock move is created from Stock to Inventory Loss with qty 13 and Lot# 0000003. This is WRONG.
When fixing this bug, pay attention to this rule: an inventory should NEVER create a stock move for a (Product,
Related bug : https:/
Related branches
- Jay Vora (Serpent Consulting Services) (community): Approve
-
Diff: 55 lines (+11/-8)2 files modifiedstock/product.py (+10/-7)
stock/stock.py (+1/-1)
description: | updated |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
This change has been discussed at length with AL, QDP, JBA, please refer to QDP for any question regarding the implementation.
This is part of a global improvement of the handling of production lot numbers in different situations.