[FIX] Add prints for fifo_price
bzr revid: jco@openerp.com-20130916154240-drmsogo7bts7r6g3
This commit is contained in:
parent
8c4789c2c2
commit
2ee43d4b68
|
@ -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,)
|
||||
|
|
Loading…
Reference in New Issue