diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2015-10-26 10:45:52 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2015-10-26 13:03:47 +0100 |
| commit | 058db898760f36262a200653c2361d2c289e6832 (patch) | |
| tree | 6479f12a79a2bdb7a270ffcf4785306b07fd802b /addons/web/static/src/js/framework/data.js | |
| parent | 1ca0e11393f3ad237566c1569585fd80f85dc33f (diff) | |
[FIX] web: proper update of the dataset
The method evict_record calls _update_cache with an empty dictionary,
which will not replace any cached value. Therefore, the cache is never
cleaned.
opw-652393
Diffstat (limited to 'addons/web/static/src/js/framework/data.js')
| -rw-r--r-- | addons/web/static/src/js/framework/data.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/web/static/src/js/framework/data.js b/addons/web/static/src/js/framework/data.js index 038ed07002e..6aee8f06391 100644 --- a/addons/web/static/src/js/framework/data.js +++ b/addons/web/static/src/js/framework/data.js @@ -925,7 +925,8 @@ var BufferedDataSet = DataSetStatic.extend({ // and this breaks the assumptions of other methods (that the data // for new and altered records is both in the cache and in the change // or to_create collection) - this._update_cache(id, {'from_read': {}}); + this.get_cache(id).from_read = {}; + this._update_cache(id); }, call_button: function (method, args) { this.evict_record(args[0][0]); @@ -1130,4 +1131,4 @@ return { compute_domain: compute_domain, }; -});
\ No newline at end of file +}); |
