From 1c0a021279af9a377b8e5dbef0b2994de279b6ee Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Sun, 4 Jul 2010 15:49:52 +0200 Subject: [PATCH] modifs bzr revid: fp@tinyerp.com-20100704134952-gd6iuokhkizs8b01 --- addons/mrp/test/mrp_packs.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/mrp/test/mrp_packs.yml b/addons/mrp/test/mrp_packs.yml index 145b3f7e05f..309e3d2b200 100644 --- a/addons/mrp/test/mrp_packs.yml +++ b/addons/mrp/test/mrp_packs.yml @@ -1,4 +1,4 @@ -- | +- In order to test the Packs in OpenERP, we will try to sell a "Pack of 24 beers" which is composed of 24 "Beers" and a "Beers Pack". - | @@ -77,8 +77,8 @@ - | I validate the newly created picking. - - !python {model: stock.picking} - self.draft_validate(cr, uid, [ref("stock_picking_out0")], { + !python {model: stock.picking}: | + self.draft_validate(cr, uid, [ref("picking_out")], { "active_ids": [ref("stock.menu_action_picking_tree")], "active_id": ref("stock.menu_action_picking_tree"), } ) @@ -87,7 +87,7 @@ converted to a picking of 24 beers and a pack of beer, so that my stock of beers remains exact. - - !assert {model: stock.picking, id: stock_picking_out0}: + !assert {model: stock.picking, id: picking_out}: - len(move_ids) == 2 - move_ids[0].product_id.id <> move_ids[1].product_id.id - move_ids[0].product_id.id in (ref('product_product_beers0'), ref('product_product_beerspack0'))