[FIX] Add print in fifo_price

bzr revid: jco@openerp.com-20130917092854-qhws12yu05potal5
This commit is contained in:
Josse Colpaert 2013-09-17 11:28:54 +02:00
parent 660cbcb645
commit 7e4ae4c2c1
1 changed files with 1 additions and 1 deletions

View File

@ -359,5 +359,5 @@
!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.in_date, x.cost) for x in quant_obj.browse(cr, uid, quants)]
print "Quants:", [(x.qty, x.location_id.name, x.in_date, x.cost, x.in_date) 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,)