From 2ee43d4b6842cccc264fde52ae3948c55af72d68 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Mon, 16 Sep 2013 17:42:40 +0200 Subject: [PATCH] [FIX] Add prints for fifo_price bzr revid: jco@openerp.com-20130916154240-drmsogo7bts7r6g3 --- addons/purchase/test/fifo_price.yml | 3 +++ 1 file changed, 3 insertions(+) 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,)