[IMP]stock: remove extra space

bzr revid: dbr@tinyerp.com-20111209063427-835ue0h9kcd8k1cz
This commit is contained in:
DBR (OpenERP)
2011-12-09 12:04:27 +05:30
parent 784f3a4b1e
commit 67c9a3831f
5 changed files with 1 additions and 6 deletions
@@ -55,4 +55,3 @@
all_ids = self.search(cr, uid, [('product_id','=',ref('product.product_product_ice'))])
new_move=self.browse(cr,uid,all_ids)[-1]
assert not old_move.tracking_id == new_move.tracking_id,"After spliting the move, new move should be created with new pack"
@@ -66,4 +66,3 @@
assert move.state == 'done',"Stock move of %s picking should be in 'Done' state"%(move.picking_id.name)
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.name)
@@ -33,4 +33,3 @@
inventory = self.browse(cr, uid, [ref('stock_physical_inventory0')])[0]
self.action_done(cr,uid,[inventory.id])
assert inventory.state == 'done',"Inventory should be in 'Done' state"
-1
View File
@@ -38,4 +38,3 @@
(data, format) = netsvc.LocalService('report.stock.product.history').create(cr, uid, [ref('product.product_product_pc1')], {}, {})
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'stock-product_stock_report.'+format), 'wb+').write(data)
+1 -2
View File
@@ -40,7 +40,7 @@
-
!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!'
assert [x.state for x in self.browse(cr, uid, ids) if x.state == 'done'], 'stock moves should be done!'
-
For testing the process of return picking, I create copy of delivery order.
@@ -62,4 +62,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)