From 8ebe4b2d566573482cc14b2130b8253bb2ba0078 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 29 Oct 2015 14:36:27 +0100 Subject: [FIX] web: can remove record in many2many kanban view Wrong underscore method called. Issue: go on customer form view, remove a contacts in the many2many kanban view and save. The record is not unlink. --- addons/web/static/src/js/framework/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/js/framework') 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); }, -- cgit v1.2.3