[FIX] mrp tests: it seems the created partial picking row was not used
(and 1 was hardcoded instead). bzr revid: vmt@openerp.com-20110830092453-ynbjx0725mxik1h0
This commit is contained in:
@@ -256,7 +256,7 @@
|
||||
!python {model: stock.partial.picking}: |
|
||||
pick_obj = self.pool.get('stock.picking')
|
||||
picking_ids = pick_obj.search(cr, uid, [('type','=','in'),('state','=','assigned')])
|
||||
partial = self.browse(cr, uid, 1, context)
|
||||
partial = self.browse(cr, uid, ref('stock_partial_picking0'), context)
|
||||
partial_datas = {
|
||||
'delivery_date': partial.date
|
||||
}
|
||||
|
||||
@@ -210,7 +210,7 @@
|
||||
!python {model: stock.partial.picking}: |
|
||||
pick_obj = self.pool.get('stock.picking')
|
||||
picking_ids = pick_obj.search(cr, uid, [('address_id.name','=','Wong'),('state','=','assigned')])
|
||||
partial = self.browse(cr, uid, 1, context)
|
||||
partial = self.browse(cr, uid, ref('stock_partial_picking0'), context)
|
||||
partial_datas = {
|
||||
'delivery_date' : partial.date
|
||||
}
|
||||
@@ -246,7 +246,7 @@
|
||||
!python {model: stock.partial.picking}: |
|
||||
pick_obj = self.pool.get('stock.picking')
|
||||
picking_ids = pick_obj.search(cr, uid, [('address_id.name','=','Tang'),('state','=','assigned')])
|
||||
partial = self.browse(cr, uid, 1, context)
|
||||
partial = self.browse(cr, uid, ref('stock_partial_picking0'), context)
|
||||
partial_datas = {
|
||||
'delivery_date': partial.date
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user