[FIX] stock: pass the geven limit attribute in read_group call, courtesy of Guewen...
authorMartin Trigaux <mat@openerp.com>
Wed, 23 Apr 2014 15:06:21 +0000 (17:06 +0200)
committerMartin Trigaux <mat@openerp.com>
Wed, 23 Apr 2014 15:06:21 +0000 (17:06 +0200)
bzr revid: mat@openerp.com-20140423150621-rjiae83nxh5tqyau

addons/stock/stock.py

index ad8f685..9a1c93f 100644 (file)
@@ -3021,7 +3021,7 @@ class stock_picking_in(osv.osv):
         return self.pool.get('stock.picking').read(cr, uid, ids, fields=fields, context=context, load=load)
 
     def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None, orderby=False):
-        return self.pool['stock.picking'].read_group(cr, uid, domain, fields, groupby, offset=offset, limit=None, context=context, orderby=orderby)
+        return self.pool['stock.picking'].read_group(cr, uid, domain, fields, groupby, offset=offset, limit=limit, context=context, orderby=orderby)
 
     def check_access_rights(self, cr, uid, operation, raise_exception=True):
         #override in order to redirect the check of acces rights on the stock.picking object
@@ -3094,7 +3094,7 @@ class stock_picking_out(osv.osv):
         return self.pool.get('stock.picking').read(cr, uid, ids, fields=fields, context=context, load=load)
 
     def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None, orderby=False):
-        return self.pool['stock.picking'].read_group(cr, uid, domain, fields, groupby, offset=offset, limit=None, context=context, orderby=orderby)
+        return self.pool['stock.picking'].read_group(cr, uid, domain, fields, groupby, offset=offset, limit=limit, context=context, orderby=orderby)
 
     def check_access_rights(self, cr, uid, operation, raise_exception=True):
         #override in order to redirect the check of acces rights on the stock.picking object