From c7e161dcc5db9dfe4029c3314ba7fab8c555e4fb Mon Sep 17 00:00:00 2001 From: "Harry (OpenERP)" Date: Thu, 8 Jul 2010 16:17:49 +0530 Subject: [PATCH] [FIX] mrp: small yml issue bzr revid: hmo@tinyerp.com-20100708104749-qsqwr4ic10fjltwu --- addons/mrp/test/mrp_packs.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/mrp/test/mrp_packs.yml b/addons/mrp/test/mrp_packs.yml index 309e3d2b200..ca3453f94e6 100644 --- a/addons/mrp/test/mrp_packs.yml +++ b/addons/mrp/test/mrp_packs.yml @@ -69,7 +69,7 @@ location_dest_id: stock.stock_location_customers location_id: stock.stock_location_stock name: Pack of 24 Beers - product_id: mrp_bom_packofbeers0 + product_id: product_product_packofbeers0 product_qty: 2.0 product_uom: product.product_uom_unit move_type: direct @@ -83,12 +83,12 @@ "active_id": ref("stock.menu_action_picking_tree"), } ) - | - I check that my Picking of a "PAck of 24 beers" as been automatically + I check that my Picking of a "Pack of 24 beers" has been automatically 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: 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')) - - move_ids[1].product_id.id in (ref('product_product_beers0'), ref('product_product_beerspack0')) + - len(move_lines) == 2 + - move_lines[0].product_id.id <> move_lines[1].product_id.id + - move_lines[0].product_id.id in (ref('product_product_beers0'), ref('product_product_beerspack0')) + - move_lines[1].product_id.id in (ref('product_product_beers0'), ref('product_product_beerspack0'))