[FIX] web_tree_dynamic_colored_field : return first color that match with valid expression.

without that patch : {'bg_color': 'red: True; green: True;'} will return 'green'
With that patch : {'bg_color': 'red: True; green: True;'} will return 'red'
pull/2443/head
Sylvain LE GAL 2023-03-10 12:49:16 +01:00
parent 4a7a42731b
commit 262b219558
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ odoo.define('web_tree_dynamic_colored_field', function (require) {
expression = pair[1];
if (py.evaluate(expression, ctx).toJSON()) {
$td.css(cssAttribute, color);
return;
}
}
}