From d539e5fc04bd0017fb35665c7ebe6a48d68cc45c Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Wed, 5 Jun 2013 11:20:08 +0200 Subject: [PATCH] [IMP] Report YML test bzr revid: jco@openerp.com-20130605092008-p9m0ojm7uimhk28y --- addons/purchase/test/fifo_price.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/addons/purchase/test/fifo_price.yml b/addons/purchase/test/fifo_price.yml index 254ba77bfc2..153841918c7 100644 --- a/addons/purchase/test/fifo_price.yml +++ b/addons/purchase/test/fifo_price.yml @@ -373,8 +373,6 @@ Check Stock Inventory Report view if it shows the correct value of the stock - !python {model: report.stock.inventory}: | - print self.pool.get("product.product").browse(cr, uid, ref("product_fifo_icecream")).qty_available - ids = self.search(cr, uid, [('product_id', '=', ref("product_fifo_icecream")), ("state", "=", "done"), ("product_qty", ">", 0.0)]) - for line in self.browse(cr, uid, ids): - print line.product_qty, line.value, line.location_src_type, line.location_dest_type, line.state, line.ref - assert len(ids) == 0, 'No lines should be visible in the stock inventory' \ No newline at end of file + ids = self.search(cr, uid, [('product_id', '=', ref("product_fifo_icecream")), ("state", "=", "done"), ("product_qty", ">", 0.0), + ('location_dest_type','=', 'internal')]) + assert len(ids) == 0, 'No lines should be visible in the stock inventory as the stock is negative' \ No newline at end of file