[IMP] web_theme_classic : Do not display required color on readonly fields

This commit is contained in:
Sylvain LE GAL
2023-04-18 16:49:22 +02:00
parent e8890a26f2
commit 2b8818a4a9

View File

@@ -51,7 +51,7 @@ $button-border-color: #dee2e6;
Form View : Handle Background for required fields
************************************************************/
.o_required_modifier {
.o_required_modifier:not(.o_readonly_modifier) {
.o_input {
/* Add background for all editable and required fields */
background-color: $input-background-color-required !important;
@@ -63,7 +63,7 @@ $button-border-color: #dee2e6;
}
}
.o_required_modifier.o_field_selection {
.o_required_modifier.o_field_selection:not(.o_readonly_modifier) {
/* Specific case for field selection */
background-color: $input-background-color-required !important;
}