[IMP]stock: Improve the test statements
bzr revid: dbr@tinyerp.com-20111130111050-1ib1ea4wv53f3j9p
This commit is contained in:
parent
cc52af38ea
commit
57afcbbfd9
|
@ -29,7 +29,7 @@
|
|||
if i.location_id.name == 'Cold Storage':
|
||||
assert i.location_dest_id.name == 'Customers',"Destination location must be 'Customers' because the source location is 'Cold Storage'"
|
||||
-
|
||||
I trace the stock production lot for product 'Sprouting Foods'
|
||||
I trace the stock production lot for product 'Sprouting Foods'.
|
||||
-
|
||||
!python {model: stock.production.lot }: |
|
||||
self.action_traceability(cr,uid,[ref('stock_production_lot2')], {'active_model': 'ir.ui.menu', 'field': '', 'type': ''})
|
||||
|
|
|
@ -76,3 +76,4 @@
|
|||
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)
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
-
|
||||
In order to test the new packing facility in OpenERP, I create one pack record.
|
||||
In order to test the new packing from the existing one, First I create a pack.
|
||||
-
|
||||
!record {model: stock.tracking, id: stock_tracking_0}:
|
||||
name: 0000007
|
||||
|
@ -10,7 +10,7 @@
|
|||
!record {model: stock.move, id: stock_move_3}:
|
||||
tracking_id: stock_tracking_0
|
||||
-
|
||||
I split the picking in two quantities.
|
||||
I split the picking in to two quantities.
|
||||
-
|
||||
!python {model: stock.move }: |
|
||||
move_ids=self.browse(cr,uid,ref('stock_move_3'))
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
-
|
||||
In order to test the stock module, I start it from physical inventory.
|
||||
-
|
||||
I create a record for physical inventory and change the product quantity zero by making a physical inventory.
|
||||
-
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
-
|
||||
In order to test the stock module, I update the current stock of the product '[CPU2]High speed processor config'.
|
||||
I update the current stock of the product '[CPU2]High speed processor config'.
|
||||
-
|
||||
I assignd the created location in to warehouse.
|
||||
-
|
||||
|
@ -27,7 +27,7 @@
|
|||
!python {model: stock.production.lot }: |
|
||||
self.action_traceability(cr,uid,[ref('stock_production_lot0')], {'lang': 'en_US', 'tz': False, 'active_model': 'ir.ui.menu', 'field': '', 'type': ''})
|
||||
-
|
||||
I check physical inventory created.
|
||||
I check that physical inventory created.
|
||||
-
|
||||
!python {model: stock.inventory.line}: |
|
||||
ids = self.search(cr, uid, [('product_id','=',ref('product.product_product_cpu2'))])
|
||||
|
@ -37,7 +37,7 @@
|
|||
assert inventory.location_id.id == ref('stock_location_stock'), 'Location is not correspond'
|
||||
assert inventory.state == 'done', 'State should be in Done state'
|
||||
-
|
||||
I check stock moves created.
|
||||
I check that stock moves created.
|
||||
-
|
||||
!python {model: stock.move}: |
|
||||
ids = self.search(cr, uid, [('product_id','=',ref('product.product_product_cpu2'))])
|
||||
|
|
Loading…
Reference in New Issue