mirror of https://github.com/OCA/web.git
[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
parent
4a7a42731b
commit
262b219558
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue