From d32e275ad1e31dc0c52d37563e406d052d3d8a32 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Tue, 14 Mar 2017 13:16:43 +0100 Subject: [PATCH] [FIX] web: force red color for invalid form elements When an input is saved with an invalid value, it gets the `o_form_invalid` class. This makes the border red. In enterprise, there was a bug as required inputs have also a different border color and the rule was more important. Unfortunately there is no avoiding the !important rule here. Indeed, other solutions would require to make more rules in enterprise or to change the order of files (which would create many problems). --- addons/web/static/src/less/form_view.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/less/form_view.less b/addons/web/static/src/less/form_view.less index ef0bcb44be4..da425d5a69f 100644 --- a/addons/web/static/src/less/form_view.less +++ b/addons/web/static/src/less/form_view.less @@ -174,7 +174,7 @@ .o_form_invalid { &.o_form_input, .o_form_input, &.o_form_textarea, .o_form_textarea { - border-color: @brand-danger; + border-color: @brand-danger!important; // enterprise o_form_required rule overrides this without !important } }