From cc52af38ea565052fc022a3f686ab6037d10296e Mon Sep 17 00:00:00 2001 From: "DBR (OpenERP)" Date: Wed, 30 Nov 2011 16:18:37 +0530 Subject: [PATCH] [IMP]stock: Remove extra spaces bzr revid: dbr@tinyerp.com-20111130104837-r8s0cffdm0vpiupg --- addons/stock/stock_demo_picking.yml | 8 ++++---- addons/stock/test/cancel_stock.yml | 1 - addons/stock/test/delete_stock.yml | 1 - addons/stock/test/stock_chain_location.yml | 1 - addons/stock/test/stock_demo_backorder.yml | 1 - addons/stock/test/stock_new_pack.yml | 5 ++--- addons/stock/test/stock_physical_inventory.yml | 5 ++--- addons/stock/test/stock_update.yml | 3 +-- 8 files changed, 9 insertions(+), 16 deletions(-) diff --git a/addons/stock/stock_demo_picking.yml b/addons/stock/stock_demo_picking.yml index 66579e49ab7..d6e5664725a 100644 --- a/addons/stock/stock_demo_picking.yml +++ b/addons/stock/stock_demo_picking.yml @@ -1,12 +1,12 @@ - - Created a picking + Create a picking - !record {model: stock.picking, id: stock_picking_1}: type: out company_id: base.main_company address_id: res_partner_address_fabien0 - - Created a Move + Create a move - !record {model: stock.move, id: stock_move_1}: product_id: product.product_product_cpu1 @@ -18,7 +18,7 @@ name: CPU1, Processor AMD Athlon XP 1800 picking_id: stock_picking_1 - - Created another Move + Create another move - !record {model: stock.move, id: stock_move_2}: product_id: product.product_product_cpu3 @@ -30,7 +30,7 @@ name: CPU3, Processor AMD Athlon XP 1800 picking_id: stock_picking_1 - - Created one more Move + Create one more move - !record {model: stock.move, id: stock_move_3}: product_id: product.product_product_pc1 diff --git a/addons/stock/test/cancel_stock.yml b/addons/stock/test/cancel_stock.yml index d3ba057a755..0159a5ce444 100644 --- a/addons/stock/test/cancel_stock.yml +++ b/addons/stock/test/cancel_stock.yml @@ -44,4 +44,3 @@ stock_partial_picking.do_partial(cr, uid, [partial_id], context) return_pick_id = self.pool.get('stock.return.picking').create(cr, uid,{}, context) self.pool.get('stock.return.picking').create_returns(cr, uid, [return_pick_id], context) - diff --git a/addons/stock/test/delete_stock.yml b/addons/stock/test/delete_stock.yml index c81258511c4..fee3e751a9e 100644 --- a/addons/stock/test/delete_stock.yml +++ b/addons/stock/test/delete_stock.yml @@ -23,4 +23,3 @@ !python {model: stock.picking}: | id = context.get('id1') self.unlink(cr, uid, [id]) - diff --git a/addons/stock/test/stock_chain_location.yml b/addons/stock/test/stock_chain_location.yml index 30e134ccdbe..9b05684bb11 100644 --- a/addons/stock/test/stock_chain_location.yml +++ b/addons/stock/test/stock_chain_location.yml @@ -34,4 +34,3 @@ !python {model: stock.production.lot }: | self.action_traceability(cr,uid,[ref('stock_production_lot2')], {'active_model': 'ir.ui.menu', 'field': '', 'type': ''}) - diff --git a/addons/stock/test/stock_demo_backorder.yml b/addons/stock/test/stock_demo_backorder.yml index 5df0f922c59..e610874850d 100644 --- a/addons/stock/test/stock_demo_backorder.yml +++ b/addons/stock/test/stock_demo_backorder.yml @@ -76,4 +76,3 @@ assert move.state == 'done',"Stock move of %s picking should be in 'Done' state"%(move.picking_id) for move in stock.browse(cr, uid, assign_move): assert move.state == 'assigned' or 'draft',"Stock move of %s picking should be in 'Available' state"%(move.picking_id) - diff --git a/addons/stock/test/stock_new_pack.yml b/addons/stock/test/stock_new_pack.yml index e5f584a47c0..245c06e7b51 100644 --- a/addons/stock/test/stock_new_pack.yml +++ b/addons/stock/test/stock_new_pack.yml @@ -3,11 +3,11 @@ - !record {model: stock.tracking, id: stock_tracking_0}: name: 0000007 - date: !eval time.strftime('%Y-%m-%d %H:%M:%S') + date: !eval time.strftime('%Y-%m-%d %H:%M:%S') - I have to take one delivery order move and set the craeted pack. - - !record {model: stock.move, id: stock_move_3}: + !record {model: stock.move, id: stock_move_3}: tracking_id: stock_tracking_0 - I split the picking in two quantities. @@ -22,4 +22,3 @@ assert len(moves) > len(old_moves),"After spliting the picking, new move should be created" new_move = self.browse(cr, uid, moves[-1]) assert new_move.tracking_id,"After spliting the picking, new move should be created with new pack" - diff --git a/addons/stock/test/stock_physical_inventory.yml b/addons/stock/test/stock_physical_inventory.yml index 3282694c4ac..f4ddd012d5c 100644 --- a/addons/stock/test/stock_physical_inventory.yml +++ b/addons/stock/test/stock_physical_inventory.yml @@ -5,7 +5,7 @@ company_id: base.main_company date: !eval time.strftime('%Y-%m-%d %H:%M:%S') name: Physical inventory - state: draft + state: draft - Now, Define the location for import inventory. - @@ -38,5 +38,4 @@ - !python {model: stock.inventory}: | inventory = self.browse(cr, uid, [ref('stock_physical_inventory0')]) - assert inventory[0].state == 'done',"After validate the inventory it should be in 'Done' state" - + assert inventory[0].state == 'done',"After validate the inventory it should be in 'Done' state" diff --git a/addons/stock/test/stock_update.yml b/addons/stock/test/stock_update.yml index e7cd514fe49..19f88dc9f9d 100644 --- a/addons/stock/test/stock_update.yml +++ b/addons/stock/test/stock_update.yml @@ -1,5 +1,5 @@ - - In order to test the stock module, I will update the current stock of the product '[CPU2]High speed processor config'. + In order to test the stock module, I update the current stock of the product '[CPU2]High speed processor config'. - I assignd the created location in to warehouse. - @@ -42,4 +42,3 @@ !python {model: stock.move}: | ids = self.search(cr, uid, [('product_id','=',ref('product.product_product_cpu2'))]) assert [x.state for x in self.browse(cr, uid, ids) if x.state == 'done'], 'stock moves should be done!' -