From c53bd3665587097120b4495017658329de67d283 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Fri, 28 Aug 2015 16:55:27 +0200 Subject: [PATCH] [FIX] web: BufferedDataSet must update the cache when reset_ids is called --- addons/web/static/src/js/framework/data.js | 4 ++-- 1 file 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;