[IMP] stock: small refactoring

bzr revid: qdp-launchpad@openerp.com-20140127124045-14yk1o7m00p8ai8e
This commit is contained in:
Quentin (OpenERP)
2014-01-27 13:40:45 +01:00
parent 71d97e7008
commit aed6fa8dc5
-2
View File
@@ -1173,8 +1173,6 @@ class stock_production_lot(osv.osv):
@param context: A standard dictionary
@return: A dictionary of values
"""
if not ids or len(ids) == 0:
return False #TODO give warning instead
quant_obj = self.pool.get("stock.quant")
move_obj = self.pool.get("stock.move")
quants = quant_obj.search(cr, uid, [('lot_id', 'in', ids)], context=context)