[FIX] Add prints for fifo_price

bzr revid: jco@openerp.com-20130916154240-drmsogo7bts7r6g3
This commit is contained in:
Josse Colpaert 2013-09-16 17:42:40 +02:00
parent 8c4789c2c2
commit 2ee43d4b68
1 changed files with 3 additions and 0 deletions

View File

@ -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,)