mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[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'
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user