lp://staging/~openerp-dev/openobject-server/7.0-bug-1238042-odo

Created by Olivier Dony (Odoo) and last modified
Get this branch:
bzr branch lp://staging/~openerp-dev/openobject-server/7.0-bug-1238042-odo
Members of OpenERP R&D Team can upload to this branch. Log in for directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
OpenERP R&D Team
Project:
Odoo Server (MOVED TO GITHUB)
Status:
Development

Recent revisions

5136. By Olivier Dony (Odoo)

[FIX] orm.browse_record: access error due to prefetching of indirectly referenced records (OPW #596679)\

The browse_record prefetching algorithm attempts to
load data for all known records from the requested
model (i.e. all IDs present in the browse cache),
regardless of how indirectly/remotely they were
referenced. An indirect parent record may therefore
be prefetched along with its directly browsed children,
possibly crossing company boundaries involuntarily.

This patch implements a fallback mechanism when
the prefetching failed due to what looks like an
ACL restriction. This being a fuzzy concept at the
moment, it does its best to only catch a restricted
set of exceptions, and retry loading the data for
the directly requested ID only.

This may cause a small performance penalty in case
of real errors (with some spurious logging too),
but should only be triggered in very few cases.

The downside when this happens is that the prefetching for that
model gets effectively disabled, requiring multiple
SQL queries for further access to the data of
the other directly browsed records.

This EAFP approach seems safer and faster than
a LBYL technique where we would have to filter
all indirect m2o references according to ACLs
before allowing them to enter the cache.

5135. By Denis Ledoux (OpenERP)

[FIX] ir, ir_attachement: traceback if try to create attachement without res_id, caused by check access rights trying to check if the user had the right to read the object with a res_id 0

5134. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

5133. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

5132. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

5131. By Olivier Dony (Odoo)

[FIX] base: invalid ISO code for former Venezuela bolivar - ISO 4217 says VEB

XML ID is preserved for compatibility, will be updated in trunk.

5130. By Olivier Dony (Odoo)

[MERGE] base: invalid currency for Venezuela, courtesy of Nhomar (Vauxoo)

Country data is incorrect for Venezuela, the country currency is VEF not VUB (the old ones) wich technically is incorrect too because it was VEB.

5129. By Martin Trigaux (OpenERP)

[FIX] registry: missing a threading.RLock in RegistryManager.get():

if no registry exists and several calls to RegistryManager.get() are called at the same time
by several threads, several registries will be created one after the other and only the last
one will be kept in cls.registries (courtesy of Guewen Baconnier (Camptocamp)

Invert behaviour of commit 3685 because, at that time, the new trigger the schedule_cron_jobs method which ran another lock and called get on the registry. We had a deadlock with the cron. This is no longer the case as we don't call the same method at the end of the creation of the registry and it does not trigger a lock

5128. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

5127. By Martin Trigaux (OpenERP)

[FIX] ir_fields: call selection function with context=None instead of not passing argument. Same behaviour as previsously but does not break when have default value for context (eg: _get_language for ir.translation)

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp://staging/openobject-server/7.0
This branch contains Public information 
Everyone can see this information.

Subscribers