b7865502e4
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. lp bug: https://launchpad.net/bugs/1238042 fixed lp bug: https://launchpad.net/bugs/1212429 fixed bzr revid: odo@openerp.com-20131120100627-031fljyf4ckprc9b |
||
---|---|---|
addons | ||
debian | ||
doc | ||
history | ||
install | ||
openerp | ||
scripts | ||
win32 | ||
.bzrignore | ||
LICENSE | ||
LICENSE.web | ||
MANIFEST.in | ||
README | ||
README.web | ||
openerp-server | ||
openerp-wsgi.py | ||
setup.cfg | ||
setup.nsi | ||
setup.py | ||
setup_rpm.sh |
README
About OpenERP ------------- OpenERP is an OpenSource/Free software Enterprise Resource Planning and Customer Relationship Management software. More info at: http://www.openerp.com Installation on Debian/Ubuntu ----------------------------- Add the the apt repository deb http://nightly.openerp.com/6.1/deb/ ./ in your source.list and type: $ sudo apt-get update $ sudo apt-get install openerp Or download the deb file and type: $ sudo dpkg -i <openerp-deb-filename> $ sudo apt-get install install -f Installation on RedHat, Fedora, CentOS -------------------------------------- Install the required dependencies: $ yum install python $ easy_install pip $ pip install ..... Install the openerp rpm $ rpm -i openerp-VERSION.rpm Installation on Windows ----------------------- Check the notes in setup.py Installation on MacOSX ----------------------- Setuping you first database --------------------------- Point your browser to http://localhost:8069/ and click "Manage Databases", the default master password is "admin". Detailed System Requirements ---------------------------- The dependencies are listed in setup.py For Luxembourg localization, you also need: pdftk (http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/)