mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[REF] web_m2x_options: eslint complains
This commit is contained in:
committed by
Germana
parent
5b923fd7ea
commit
dc5f69af4b
@@ -167,8 +167,8 @@ odoo.define('web_m2x_options.web_m2x_options', function (require) {
|
|||||||
// Search result value colors
|
// Search result value colors
|
||||||
if (self.colors && self.field_color) {
|
if (self.colors && self.field_color) {
|
||||||
var value_ids = [];
|
var value_ids = [];
|
||||||
for (var index in values) {
|
for (var val_index in values) {
|
||||||
value_ids.push(values[index].id);
|
value_ids.push(values[val_index].id);
|
||||||
}
|
}
|
||||||
self._rpc({
|
self._rpc({
|
||||||
model: self.field.relation,
|
model: self.field.relation,
|
||||||
@@ -178,7 +178,7 @@ odoo.define('web_m2x_options.web_m2x_options', function (require) {
|
|||||||
}).then(objects => {
|
}).then(objects => {
|
||||||
for (var index in objects) {
|
for (var index in objects) {
|
||||||
for (var index_value in values) {
|
for (var index_value in values) {
|
||||||
if (values[index_value].id == objects[index].id) {
|
if (values[index_value].id === objects[index].id) {
|
||||||
// Find value in values by comparing ids
|
// Find value in values by comparing ids
|
||||||
var value = values[index_value];
|
var value = values[index_value];
|
||||||
// Find color with field value as key
|
// Find color with field value as key
|
||||||
|
|||||||
Reference in New Issue
Block a user