[FIX] stock: programming error in average price computation for multiple lines of...
authorOlivier Dony <odo@openerp.com>
Mon, 4 Nov 2013 17:12:45 +0000 (18:12 +0100)
committerOlivier Dony <odo@openerp.com>
Mon, 4 Nov 2013 17:12:45 +0000 (18:12 +0100)
commita6ca3b043fd898cfcb714b3fb4d24b9377e8d00c
tree2f8eac0a4c66fddbf16065c5f8e454a30b46bf45
parent5f56739c1b3f24b0e50dc40cac16db17ed1e0030
[FIX] stock: programming error in average price computation for multiple lines of the same product

While processing a picking we must keep track of
previously processed lines as they modify the
stock on hand but are not yet included in the
`qty_available` function.
Negative stock on hand is handled as if
the stock was zero as far as the average
price computation is concerned.

bzr revid: odo@openerp.com-20131104171245-z1lgsplyu4cdz9gc
addons/stock/stock.py