diff --git a/addons/stock_complex_routes/test/dropship.yml b/addons/stock_complex_routes/test/dropship.yml index 9b4b6852960..53b65200aea 100644 --- a/addons/stock_complex_routes/test/dropship.yml +++ b/addons/stock_complex_routes/test/dropship.yml @@ -64,7 +64,7 @@ Check one quant was created in Customers location with 200 pieces and one move in the history_ids - !python {model: stock.quant}: | - quant_id = self.search(cr, uid, [('location_id', '=', ref('stock.stock_location_customers')),('product_id', '=', ref("drop_shop_product"))]) + quant_id = self.search(cr, uid, [('product_id', '=', ref("drop_shop_product"))]) print quant_id, [(x.qty, x.product_id.name) for x in self.browse(cr, uid, quant_id)] quant_id = self.search(cr, uid, [('location_id', '=', ref('stock.stock_location_customers')),('qty', '=', 200), ('product_id', '=', ref("drop_shop_product"))]) print quant_id, [(x.qty, x.product_id.name) for x in self.browse(cr, uid, quant_id)]