diff options
| author | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2014-01-27 13:40:45 +0100 |
|---|---|---|
| committer | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2014-01-27 13:40:45 +0100 |
| commit | aed6fa8dc50facf47e1f416ff8f2efec12702a43 (patch) | |
| tree | 6cad884d811a206ffeaf872744e730ab3c8cd7ca | |
| parent | 71d97e70082d50159afc3de09e428146140ea75d (diff) | |
[IMP] stock: small refactoring
bzr revid: qdp-launchpad@openerp.com-20140127124045-14yk1o7m00p8ai8e
| -rw-r--r-- | addons/stock/stock.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/addons/stock/stock.py b/addons/stock/stock.py index de2622862eb..899d253e70c 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -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) |
