[IMP] No pack operations create needed at force_assign

bzr revid: jco@openerp.com-20140227161020-happi4qshw2uoabo
This commit is contained in:
Josse Colpaert 2014-02-27 17:10:20 +01:00
parent bd0fcb70b7
commit 753c125024
1 changed files with 0 additions and 2 deletions

View File

@ -852,8 +852,6 @@ class stock_picking(osv.osv):
for pick in self.browse(cr, uid, ids, context=context):
move_ids = [x.id for x in pick.move_lines if x.state in ['confirmed', 'waiting']]
self.pool.get('stock.move').force_assign(cr, uid, move_ids, context=context)
if pick.pack_operation_exist:
self.do_prepare_partial(cr, uid, [pick.id], context=None)
return True
def action_cancel(self, cr, uid, ids, context=None):