[FIX] web: use an unused variable in mock server

Fine-tuning of commit:
https://github.com/odoo/odoo/commit/818c18e55d0718286ff5bf332186a10f4d7a58ef
which introduced a variable that it didn't use.

opw 1867049
This commit is contained in:
len-odoo
2018-08-29 11:04:46 +02:00
committed by len-odoo
parent 6bc2be09f5
commit 683ecab8dd
@@ -776,7 +776,7 @@ var MockServer = Class.extend({
var field = args.field ? args.field : 'sequence';
var records = this.data[args.model].records;
for (var i in args.ids) {
var record = _.findWhere(this.data[args.model].records, {id: args.ids[i]});
var record = _.findWhere(records, {id: args.ids[i]});
record[field] = Number(i) + offset;
}
},