[FIX]Resolved traceback on moving to the previous record from serial numbers in Trace...
authorDharti Ratani (Open ERP) <dhr@tinyerp.com>
Fri, 29 Mar 2013 06:29:50 +0000 (11:59 +0530)
committerDharti Ratani (Open ERP) <dhr@tinyerp.com>
Fri, 29 Mar 2013 06:29:50 +0000 (11:59 +0530)
bzr revid: dhr@tinyerp.com-20130329062950-02e37dwbtidy5mi7

addons/stock/stock.py

index f225837..19328fa 100644 (file)
@@ -1426,7 +1426,7 @@ class stock_production_lot(osv.osv):
             ids = [ids]
 
         res = {}.fromkeys(ids, 0.0)
-        if locations:
+        if locations and ids:
             cr.execute('''select
                     prodlot_id,
                     sum(qty)