diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2011-06-23 14:21:10 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2011-06-23 14:21:10 +0200 |
| commit | 9eede2e3a42fcbea9590fdfacc48d895b76b9502 (patch) | |
| tree | f4702ac95cc829b7f86c61509587a80961ee9c55 /addons/base/static/src/js/data.js | |
| parent | 63d23036a353f2c52df108ec34ca36cbfd4aba8e (diff) | |
[fix] added setTimeout to all methods of o2m dataset to avoid lot of potential bugs in the views
bzr revid: nicolas.vanhoren@openerp.com-20110623122110-4cst4fm1dzup5z69
Diffstat (limited to 'addons/base/static/src/js/data.js')
| -rw-r--r-- | addons/base/static/src/js/data.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/base/static/src/js/data.js b/addons/base/static/src/js/data.js index 47e6d4fed3d..954eb8ccf43 100644 --- a/addons/base/static/src/js/data.js +++ b/addons/base/static/src/js/data.js @@ -357,6 +357,8 @@ openerp.base.DataSetStatic = openerp.base.DataSet.extend({ this.count = this.ids.length; }, read_slice: function (fields, offset, limit, callback) { + var self = this; + offset = offset || 0; var end_pos = limit && limit !== -1 ? offset + limit : undefined; this.read_ids(this.ids.slice(offset, end_pos), fields, callback); }, |
