odoo/addons/stock/tests
Josse Colpaert 1de37862d6 [FIX] stock: when matching moves with pack operations through quants, it did not match the packages correctly. Courtesy of Pedro Baeza
Before, it did a search to see if the package existed,
but the only thing it needs to do is see if the package
on the pack operation corresponds to that of the quant.  (no need to check children also)

There is a test added:
A picking with 120 pieces incoming, 120 in pack 1, 80 in pack2
When we deliver those in a picking out, with product pack operations: (by taking them out of the pack)

120 from pack 1 and 80 from pack2,
we should only have 2 quants and links between moves in the end

And before, it generated 3 because it matched the wrong quants and made the wrong links.

opw 693760 closes #13836
2016-11-16 11:26:20 +01:00
..
__init__.py [FIX] stock: let resupply from warehouse work 2015-08-12 08:14:48 +02:00
common.py [FIX] stock: when matching moves with pack operations through quants, it did not match the packages correctly. Courtesy of Pedro Baeza 2016-11-16 11:26:20 +01:00
test_owner_available.py [FIX] stock: use owner for virtual stock and in/out 2015-04-10 11:14:30 +02:00
test_resupply.py [FIX] stock: let resupply from warehouse work 2015-08-12 08:14:48 +02:00
test_stock_flow.py [FIX] stock: when matching moves with pack operations through quants, it did not match the packages correctly. Courtesy of Pedro Baeza 2016-11-16 11:26:20 +01:00