[FIX] Correctly set index in DataSetStatic constructor
bzr revid: fme@openerp.com-20110628095858-euv72cho29rbu3hl
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user