diff options
| author | Antony Lesuisse <al@openerp.com> | 2011-04-07 00:18:04 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2011-04-07 00:18:04 +0200 |
| commit | e255b79f8abd0b6ab47765cacf2044900256e2bb (patch) | |
| tree | 12e77d541cc4d75321515302ab1464dbe49074ff /addons/base/static/src/js/data.js | |
| parent | 81679cc3ffae7262df31d3d082cdc2cff49fab04 (diff) | |
form to use _.keys(fields)
bzr revid: al@openerp.com-20110406221804-fd3pyiv3o00cioi6
Diffstat (limited to 'addons/base/static/src/js/data.js')
| -rw-r--r-- | addons/base/static/src/js/data.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/base/static/src/js/data.js b/addons/base/static/src/js/data.js index 6c82d79e00f..4dbfb47dd28 100644 --- a/addons/base/static/src/js/data.js +++ b/addons/base/static/src/js/data.js @@ -109,11 +109,11 @@ openerp.base.DataSet = openerp.base.Controller.extend( /** @lends openerp.base. }); openerp.base.DataSetStatic = openerp.base.DataSet.extend({ - init: function(session, model, ids) { + init: function(session, model) { this._super(session, model); // all local records - this.ids = ids; - this.count = ids.length; + this.ids = []; + this.count = 0; }, read_slice: function (fields, offset, limit, callback) { this.read_ids(this.ids.slice(offset, offset + limit)); |
