diff options
| author | Christophe Matthieu <chm@odoo.com> | 2015-10-29 14:36:27 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2015-10-29 15:31:42 +0100 |
| commit | 8ebe4b2d566573482cc14b2130b8253bb2ba0078 (patch) | |
| tree | a65e6f4b3ca042e6a8a897aa3482e1e238e52870 /addons/web/static/src/js | |
| parent | c8e7e1dc5b07d1b6c99865c5e10c61f4b258e861 (diff) | |
[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.
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/framework/data.js | 2 |
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); }, |
