[FIX] stock: WIP packaging

bzr revid: qdp-launchpad@openerp.com-20130626144628-w8ssaqcjxdja15ao
This commit is contained in:
Quentin (OpenERP) 2013-06-26 16:46:28 +02:00
parent 6c9b94a5df
commit 069a870149
1 changed files with 1 additions and 1 deletions

View File

@ -3711,7 +3711,7 @@ class stock_package(osv.osv):
included_package_ids = self.search(cr, uid, [('parent_id', 'child_of', [operation.package_id.id])], context=context)
included_quant_ids = quant_obj.search(cr, uid, [('package_id', 'in', included_package_ids)], context=context)
todo_on_moves, todo_on_operations = self._deal_with_quants(cr, uid, operation.picking_id.id, included_quant_ids, context=context)
return {'warnings': '', 'stock_move_to_update': todo_on_moves, 'package_to_update': todo_on_operations}
return {'warnings': '', 'moves_to_update': todo_on_moves, 'operations_to_update': todo_on_operations}
#def action_delete(self, cr, uid, ids, context=None):
# #no need, we use unlink of ids and with the ondelete = cascade it will work flawlessly