diff --git a/addons/purchase/test/fifo_price.yml b/addons/purchase/test/fifo_price.yml index 3bf162ae50a..528ff18ec5b 100644 --- a/addons/purchase/test/fifo_price.yml +++ b/addons/purchase/test/fifo_price.yml @@ -357,4 +357,7 @@ The price of the product should have changed back to 65.0 - !python {model: product.product}: | + quant_obj = self.pool.get("stock.quant") + quants = quant_obj.search(cr, uid, [('product_id','=',ref("product_fifo_icecream"))]) + print "Quants:", [(x.qty, x.location_id.name, x.product_id.name, x.cost) for x in quant_obj.browse(cr, uid, quants)] assert self.browse(cr, uid, ref("product_fifo_icecream")).standard_price == 65.0, "Product price not updated accordingly. %s found instead of 65" %(self.browse(cr, uid, ref("product_fifo_icecream")).standard_price,)