diff options
| author | Raphael Collet <rco@openerp.com> | 2014-07-09 15:08:29 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2014-07-09 15:23:15 +0200 |
| commit | 643be98fcf2ef3c9265e59dea3cba109b1874504 (patch) | |
| tree | 2addafe9b5a121f6a4688ff1da3fc8fabae9ec42 /addons/web/static/lib/bootstrap/css/bootstrap-theme.css.map | |
| parent | ad262cad04b38a1fccc97a9346a038bfbd34d077 (diff) | |
[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'.
Diffstat (limited to 'addons/web/static/lib/bootstrap/css/bootstrap-theme.css.map')
0 files changed, 0 insertions, 0 deletions
