odoo/openerp
Raphael Collet 643be98fcf [FIX] models: store FailedValue in cache on log_access fields, too
This should fix an issue discovered by tde when reading all fields on a record
on which you don't have access right:
 - _read_from_database() fetches result and store it in cache
 - read() retrieves values from cache, starting with field 'create_date'...
 - ... which is not in cache, so prefetch that field, read it, which goes into
   an infinite loop

The problem is that _read_from_database() finds out that you don't have access
on the record, and stores a FailedValue in cache on all fields... except magic
fields. Fix the problem by storing the FailedValue on all fields but 'id'.
2014-07-09 15:23:15 +02:00
..
addons [FIX] False module description blows up in docutils 2014-07-09 08:47:37 +02:00
cli [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
conf [MERGE] openerp.pooler is deprecated. 2013-03-27 17:40:45 +01:00
modules [FIX] data-dir management 2014-07-07 15:49:24 +02:00
osv [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
report [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
service [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
tests [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
tools [FIX] data-dir management 2014-07-07 15:49:24 +02:00
workflow [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
PKG-INFO [REM] netrpc: KILL EVERYBODY 2013-02-21 13:18:25 +01:00
__init__.py [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
api.py [FIX] unsafe listification of weakref in Python < 2.7.4 2014-07-07 13:51:53 +02:00
exceptions.py [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
fields.py Merge pull request #989 from odoo-dev/8.0-sql-models-rco 2014-07-08 16:27:01 +02:00
http.py [FIX] data-dir management 2014-07-07 15:49:24 +02:00
import_xml.rng [MERGE] Replace inherit_option_id by a selection field (PR #229) 2014-05-27 17:57:33 +02:00
loglevels.py [REF] logging: removed pseudo log-level TEST. 2013-03-26 16:58:44 +01:00
models.py [FIX] models: store FailedValue in cache on log_access fields, too 2014-07-09 15:23:15 +02:00
netsvc.py [IMP] module loading and tests profiling 2014-06-29 18:58:15 +02:00
pooler.py [IMP] registry: avoid every direct access registry.db, and rename attribute as registry._db 2014-04-09 15:35:15 +02:00
release.py [REL] 8.0 RC1 2014-07-07 15:25:42 +02:00
sql_db.py [IMP] test display sql query counter 2014-07-01 21:57:55 +02:00