[FIX] purchase: remove incorrect PO-based stock move valuation for incoming shipments
authorOlivier Dony <odo@openerp.com>
Wed, 1 Feb 2012 11:37:24 +0000 (12:37 +0100)
committerOlivier Dony <odo@openerp.com>
Wed, 1 Feb 2012 11:37:24 +0000 (12:37 +0100)
commit0c71b22f810609c30f83f48c683f77abd50877ea
treeb35c6e28e41584b576dc5daa975bb8c5b4c0b02a
parent7d8e648eaf895fb57012770fc3d3a179f3b0711b
[FIX] purchase: remove incorrect PO-based stock move valuation for incoming shipments

As discussed on bug 923191, the current override
is incorrect because it will silently replace the cost
of incoming stock moves with PO prices for products w/
standard costing - this should only concern products
with average costing for which no cost was manually
provided.
And in fact we can completely remove this override
because even for products with average costing,
the PO prices are already provided as default cost
prices in the picking/move reception wizard, so
the PO price is already taken into account and the
cost will never be missing.
Thanks to Graeme Gellatly for the excellent
analysis!

lp bug: https://launchpad.net/bugs/923191 fixed

bzr revid: odo@openerp.com-20120201113724-y18fna1v7z6kxka4
addons/purchase/stock.py