summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2015-10-30 10:46:57 +0100
committerOlivier Dony <odo@openerp.com>2015-10-30 10:47:13 +0100
commitff2069eb69213651a8f77ea7252ba8dc3a708dd7 (patch)
tree9294cf27839f0de29f946650fd800138304f502f /addons/web/static/src/js/framework
parent23d7caa8d50de8b5307936af2750c2ffe9c82540 (diff)
parent9a3e9291ffa1509f4afa0f35f9d8d71b6e0932d0 (diff)
[MERGE] Forward-port 9.0 up to 9a3e9291ffa1509f4afa0f35f9d8d71b6e0932d1
Diffstat (limited to 'addons/web/static/src/js/framework')
-rw-r--r--addons/web/static/src/js/framework/data.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/framework/data.js b/addons/web/static/src/js/framework/data.js
index 6aee8f06391..8dd34cd4b93 100644
--- a/addons/web/static/src/js/framework/data.js
+++ b/addons/web/static/src/js/framework/data.js
@@ -812,7 +812,7 @@ var BufferedDataSet = DataSetStatic.extend({
_.each(ids, function (id) {
self.get_cache(id).to_delete = true;
});
- this.set_ids(_.without(this.ids, _.pluck(_.filter(this.cache, function (c) {return c.to_delete;}), 'id')));
+ this.set_ids(_.difference(this.ids, _.pluck(_.filter(this.cache, function (c) {return c.to_delete;}), 'id')));
this.trigger("dataset_changed", ids, callback, error_callback);
return $.async_when({result: true}).done(callback);
},