diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-03-14 13:16:43 +0100 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-03-14 14:47:17 +0100 |
| commit | d32e275ad1e31dc0c52d37563e406d052d3d8a32 (patch) | |
| tree | a22e0ca119b467c7a3003636511feb2d63099798 /addons/web | |
| parent | 5b4f7c13f32f36d86805eb7865d8a077746181d8 (diff) | |
[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).
Diffstat (limited to 'addons/web')
| -rw-r--r-- | addons/web/static/src/less/form_view.less | 2 |
1 files changed, 1 insertions, 1 deletions
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 } } |
