[IMP]stock: Remove extra spaces

bzr revid: dbr@tinyerp.com-20111130104837-r8s0cffdm0vpiupg
This commit is contained in:
DBR (OpenERP)
2011-11-30 16:18:37 +05:30
parent 5d440b170a
commit cc52af38ea
8 changed files with 9 additions and 16 deletions
+4 -4
View File
@@ -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
-1
View File
@@ -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)
-1
View File
@@ -23,4 +23,3 @@
!python {model: stock.picking}: |
id = context.get('id1')
self.unlink(cr, uid, [id])
@@ -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': ''})
@@ -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)
+2 -3
View File
@@ -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"
@@ -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"
+1 -2
View File
@@ -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!'