[FIX] Correctly set index in DataSetStatic constructor

bzr revid: fme@openerp.com-20110628095858-euv72cho29rbu3hl
This commit is contained in:
Fabien Meghazi
2011-06-28 11:58:58 +02:00
parent 597f850be5
commit d106b1479d
+3
View File
@@ -353,6 +353,9 @@ openerp.base.DataSetStatic = openerp.base.DataSet.extend({
// all local records
this.ids = ids || [];
this.count = this.ids.length;
if (this.ids.length) {
this.index = 0;
}
},
read_slice: function (fields, offset, limit, callback) {
var self = this;