summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2015-08-28 16:55:27 +0200
committerChristophe Matthieu <chm@odoo.com>2015-08-28 16:58:00 +0200
commitc53bd3665587097120b4495017658329de67d283 (patch)
tree80e7fd1f8490aaf6a2711ed030f1828ced4ad3f0 /addons/web/static/src/js/framework
parent846e206182eacc936ea8762c6341629312e20bf6 (diff)
[FIX] web: BufferedDataSet must update the cache when reset_ids is called
Diffstat (limited to 'addons/web/static/src/js/framework')
-rw-r--r--addons/web/static/src/js/framework/data.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/framework/data.js b/addons/web/static/src/js/framework/data.js
index a1fdd394937..ec806c4d33b 100644
--- a/addons/web/static/src/js/framework/data.js
+++ b/addons/web/static/src/js/framework/data.js
@@ -817,13 +817,13 @@ var BufferedDataSet = DataSetStatic.extend({
return $.async_when({result: true}).done(callback);
},
reset_ids: function(ids, options) {
+ var self = this;
this.set_ids(ids);
if (!options || !options.keep_read_data) {
this.cache = {};
} else {
_.each(this.cache, function (cache) {
- cache.changes = {};
- cache.to_delete = false;
+ self._update_cache(cache.id, {'changes': {}, 'to_delete': false});
});
}
this.delete_all = false;