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

Proposed by Yannick Vaucher @ Camptocamp
Status: Rejected
Rejected by: Stefan Rijnhart (Opener)
Proposed branch: lp:~camptocamp/ocb-addons/7.0-fix-1309105
Merge into: lp:ocb-addons
Diff against target: 23 lines (+6/-0)
1 file modified
stock/stock.py (+6/-0)
To merge this branch: bzr merge lp:~camptocamp/ocb-addons/7.0-fix-1309105
Reviewer Review Type Date Requested Status
OpenERP Community Backports Pending
Review via email: mp+216681@code.launchpad.net

Description of the change

Fix access error in multi companies on search view on stock.picking.out and stock.picking.in

To post a comment you must log in.
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :
Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

That was fast :)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/stock.py'
2--- stock/stock.py 2014-04-15 16:03:31 +0000
3+++ stock/stock.py 2014-04-22 09:31:38 +0000
4@@ -3062,6 +3062,9 @@
5 def read(self, cr, uid, ids, fields=None, context=None, load='_classic_read'):
6 return self.pool.get('stock.picking').read(cr, uid, ids, fields=fields, context=context, load=load)
7
8+ def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None, orderby=False):
9+ return self.pool['stock.picking'].read_group(cr, uid, domain, fields, groupby, offset=offset, limit=None, context=context, orderby=orderby)
10+
11 def check_access_rights(self, cr, uid, operation, raise_exception=True):
12 #override in order to redirect the check of acces rights on the stock.picking object
13 return self.pool.get('stock.picking').check_access_rights(cr, uid, operation, raise_exception=raise_exception)
14@@ -3132,6 +3135,9 @@
15 def read(self, cr, uid, ids, fields=None, context=None, load='_classic_read'):
16 return self.pool.get('stock.picking').read(cr, uid, ids, fields=fields, context=context, load=load)
17
18+ def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None, orderby=False):
19+ return self.pool['stock.picking'].read_group(cr, uid, domain, fields, groupby, offset=offset, limit=None, context=context, orderby=orderby)
20+
21 def check_access_rights(self, cr, uid, operation, raise_exception=True):
22 #override in order to redirect the check of acces rights on the stock.picking object
23 return self.pool.get('stock.picking').check_access_rights(cr, uid, operation, raise_exception=raise_exception)