diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-09-09 11:49:48 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-09-09 11:49:48 +0200 |
| commit | e1bd405d8c93c43df46ab97c713af9f379d73ce3 (patch) | |
| tree | 69845c4dd1b9a39b54bc401f9974191ce28cf2a3 /addons/web/static/src/js/framework | |
| parent | ba070781b897a856e2f1d6cc9f735ee5da394e9d (diff) | |
| parent | af87c57e5138b8406e1c1c9f1d6052b91e5e810c (diff) | |
[MERGE] forward port branch 9.0 up to af87c57
Diffstat (limited to 'addons/web/static/src/js/framework')
| -rw-r--r-- | addons/web/static/src/js/framework/data.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/addons/web/static/src/js/framework/data.js b/addons/web/static/src/js/framework/data.js index 60df888ea1d..7287070013a 100644 --- a/addons/web/static/src/js/framework/data.js +++ b/addons/web/static/src/js/framework/data.js @@ -710,6 +710,13 @@ var DataSetSearch = DataSet.extend({ this._length -= (before - this.ids.length); } }, + add_ids: function(ids, at) { + var before = this.ids.length; + this._super(ids, at); + if(this._length){ + this._length += (this.ids.length - before); + } + }, unlink: function(ids, callback, error_callback) { var self = this; return this._super(ids).done(function() { |
