[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:
@@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user