summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2015-10-27 15:58:47 +0100
committerOlivier Dony <odo@openerp.com>2015-10-27 15:58:47 +0100
commitcc552c008bb78be930937b5291853216265811e4 (patch)
treeb67152b5f323d44cab34e8aa3f243f0d4ed1ced7 /addons/web/static/src/js/framework
parent46fc864fa9adae40fbaf414bc13f7c3f6f8456fa (diff)
parent2ec9a9c99294761e56382bdcd766e90b8bc1bb38 (diff)
[MERGE] Forward 9.0 up to 2ec9a9c
Diffstat (limited to 'addons/web/static/src/js/framework')
-rw-r--r--addons/web/static/src/js/framework/data.js5
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
+});