← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~camptocamp/ocb-addons/7.0-fix-1309105 into lp:ocb-addons

 

Yannick Vaucher @ Camptocamp has proposed merging lp:~camptocamp/ocb-addons/7.0-fix-1309105 into lp:ocb-addons.

Requested reviews:
  OpenERP Community Backports Team (ocb)
Related bugs:
  Bug #1309105 in OpenERP Community Backports (Addons): "stock.picking.out group by in multi companies"
  https://bugs.launchpad.net/ocb-addons/+bug/1309105

For more details, see:
https://code.launchpad.net/~camptocamp/ocb-addons/7.0-fix-1309105/+merge/216681

Fix access error in multi companies on search view on stock.picking.out and stock.picking.in
-- 
https://code.launchpad.net/~camptocamp/ocb-addons/7.0-fix-1309105/+merge/216681
Your team OpenERP Community Backports Team is requested to review the proposed merge of lp:~camptocamp/ocb-addons/7.0-fix-1309105 into lp:ocb-addons.
=== modified file 'stock/stock.py'
--- stock/stock.py	2014-04-15 16:03:31 +0000
+++ stock/stock.py	2014-04-22 09:31:38 +0000
@@ -3062,6 +3062,9 @@
     def read(self, cr, uid, ids, fields=None, context=None, load='_classic_read'):
         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)
+
     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
         return self.pool.get('stock.picking').check_access_rights(cr, uid, operation, raise_exception=raise_exception)
@@ -3132,6 +3135,9 @@
     def read(self, cr, uid, ids, fields=None, context=None, load='_classic_read'):
         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)
+
     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
         return self.pool.get('stock.picking').check_access_rights(cr, uid, operation, raise_exception=raise_exception)


Follow ups