From f99f49b1cba45172bd0b9a7e0c801831e64a8a54 Mon Sep 17 00:00:00 2001 From: Rad0van Date: Sat, 6 Jun 2026 18:28:50 +0200 Subject: [PATCH] [FIX] web_theme_classic: don't double-tint required monetary fields The required-field background sets --o-input-background-color on every .o_input inside an o_required_modifier. A monetary field renders an absolutely-positioned overlay span (which also carries .o_input) on top of the real input, so the semi-transparent tint was applied to both and the overlap rendered as a darker band over the value. Keep the overlay background transparent so only the real input carries the required tint, in both form and list views. Co-Authored-By: Claude Opus 4.8 (1M context) --- web_theme_classic/static/src/scss/web_theme_classic.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web_theme_classic/static/src/scss/web_theme_classic.scss b/web_theme_classic/static/src/scss/web_theme_classic.scss index 56b6ee42743c..6b6fa5a8a729 100644 --- a/web_theme_classic/static/src/scss/web_theme_classic.scss +++ b/web_theme_classic/static/src/scss/web_theme_classic.scss @@ -100,6 +100,10 @@ body.classic-theme { /* Prevent having double border for monetary fields */ span.o_input:has(~ input.o_input) { border: $input-border-width solid transparent !important; + /* The overlay sits on top of the real input; keep it + transparent so the required-field background is not applied + twice (which renders as a darker band over the value). */ + background-color: transparent !important; } /* Keep the monetary symbol away from the border when it is outside the border */ @@ -174,6 +178,7 @@ body.classic-theme { // Handle monetary fields in list &.o_field_monetary span.o_input:has(~ input.o_input) { border: $input-border-width solid transparent !important; + background-color: transparent !important; } } }