summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/data.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-09-09 15:14:39 +0200
committerChristophe Simonis <chs@odoo.com>2016-09-09 15:14:39 +0200
commitdc4d6b6a7a2ed8bd88c389dd72d1a5ef137c333c (patch)
treeae851daff332414756b7e7cd6ea2e1d09038699a /addons/web/static/src/js/framework/data.js
parent03b0fe1d64e713497ffea4f9db8af1b66921aafe (diff)
parente1bd405d8c93c43df46ab97c713af9f379d73ce3 (diff)
[MERGE] forward port branch saas-10 up to e1bd405
Diffstat (limited to 'addons/web/static/src/js/framework/data.js')
-rw-r--r--addons/web/static/src/js/framework/data.js7
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 008a9e879dc..577a1ec42f0 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() {