[TEST] purchase: attempt to find out why fifo_price.yml is breaking on runbot
bzr revid: qdp-launchpad@openerp.com-20130917074132-16832rf48d00g8r5
This commit is contained in:
@@ -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.product_id.name, x.cost) for x in quant_obj.browse(cr, uid, quants)]
|
||||
print "Quants:", [(x.qty, x.location_id.name, x.in_date, 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,)
|
||||
|
||||
@@ -380,7 +380,7 @@ class stock_quant(osv.osv):
|
||||
res = []
|
||||
offset = 0
|
||||
#id is added at the end of the order to make sure the order is always the same for quants created at the same second
|
||||
orderby += ', id'
|
||||
orderby += ', id asc'
|
||||
while quantity > 0:
|
||||
quants = self.search(cr, uid, domain, order=orderby, limit=10, offset=offset, context=context)
|
||||
if not quants:
|
||||
|
||||
Reference in New Issue
Block a user