openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #26941
[Bug 1261856] [NEW] stock: mixing inventory with and without SN creates weird results
Public bug reported:
Found on 7.0, but likely exists in other versions
Steps to reproduce:
on runbot, configure the instance to track serial numbers.
create a new stockable product Product1
Create and confirm 1 purchase order for 2 units of Product 1.
Display the incoming picking, and split the stock move in 2 moves with 2
different new SN (001 and 002)
Receive the goods.
Now create a physical inventory: you have decided that finally you dont
care about SN for Product1, so you enter:
* Product1, qty = 0, SN=001
* Product1, qty = 0, SN=001
* Product1, qty = 2, no SN
Confirm inventory.
Expected: 3 moves (2 losses for SN 001 and SN 002, and one with qty 2
without SN)
Actual: 2 moves (2 losses for SN 001 and SN 002). The stock for Product1
is 0 which is incorrect.
Analysis:
When the 3rd inventory line is processed during inventory confirmation,
the stock used is the stock with or without SN. Since the 2 moves with
SN have not been done yet, the stock level is still 2 and so no moves
are generated.
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1261856
Title:
stock: mixing inventory with and without SN creates weird results
Status in OpenERP Addons (modules):
New
Bug description:
Found on 7.0, but likely exists in other versions
Steps to reproduce:
on runbot, configure the instance to track serial numbers.
create a new stockable product Product1
Create and confirm 1 purchase order for 2 units of Product 1.
Display the incoming picking, and split the stock move in 2 moves with
2 different new SN (001 and 002)
Receive the goods.
Now create a physical inventory: you have decided that finally you
dont care about SN for Product1, so you enter:
* Product1, qty = 0, SN=001
* Product1, qty = 0, SN=001
* Product1, qty = 2, no SN
Confirm inventory.
Expected: 3 moves (2 losses for SN 001 and SN 002, and one with qty 2
without SN)
Actual: 2 moves (2 losses for SN 001 and SN 002). The stock for
Product1 is 0 which is incorrect.
Analysis:
When the 3rd inventory line is processed during inventory
confirmation, the stock used is the stock with or without SN. Since
the 2 moves with SN have not been done yet, the stock level is still 2
and so no moves are generated.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1261856/+subscriptions
Follow ups
References