lp://staging/~credativ/ocb-server/7.0-lp1166886
- Get this branch:
- bzr branch lp://staging/~credativ/ocb-server/7.0-lp1166886
Branch merges
- Holger Brunn (Therp): Disapprove
- Olivier Dony (Odoo) (community): Needs Information (surface scan, no test)
-
Diff: 41 lines (+6/-0)2 files modifiedopenerp/osv/fields.py (+5/-0)
openerp/osv/orm.py (+1/-0)
Related bugs
Related blueprints
Branch information
Recent revisions
- 5075. By Craig Gowing (credativ)
-
[IMP] Additional parameter on fields which allow aggreation to be disabled
- 5074. By Denis Ledoux (OpenERP)
-
[FIX]res_config: in _install_modules, result returned by button_
immediate_ install must be returned, in order to launch the action if there is one. TODO fix,at the moment, if there are missing modules, this return statement prevent their installation - 5071. By Olivier Dony (Odoo)
-
[MERGE] res.partner: skip recursive sync of `commercial` fields if none of them changed, courtesy of Holger Brunn (Therp)
- 5070. By Olivier Dony (Odoo)
-
[MERGE] [DOC] make it explicit that the module name is mandatory when specifying a sub view via the context, courtesy of Alexandre Fayolle (Camptocamp)
- 5068. By Olivier Dony (Odoo)
-
[FIX] Model.browse: prefetching should not include model-level restricted fields (with @groups)
This usually causes spurious AccessDenied errors that would
not have occurred in most cases because the restricted fields
would not be actually read/accessed.
This patch treats fields with model-level `groups` attributes
(which means access is restricted by the ORM, not just the UI)
as not prefetchable, irregardless of the actual groups that are
restricted. This agnostic approach was chosen to save the
extra group membership lookup in most cases, which is currently
not cached (caching it would be a bigger change and come with
cache invalidation issues).In the worst case the non-prefetching will cause an extra
SQL query for each restricted field that is browsed, but in
most cases this will make no performance hit, as this
from of access control is typically used only for a few
fields.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp://staging/ocb-server