From d03de125b9cd7dfcdd41bc2f42eb047bc4f999c3 Mon Sep 17 00:00:00 2001 From: Hardik Prajapati Date: Wed, 7 Jul 2021 05:52:43 +0000 Subject: [PATCH] [FIX] web: inconsistent hover cursor on some stat button Before this commit: the hover property inconsistent with some content of the stat button, it happens because the content of the stat button contains field widget which contains 'o_quick_editable' class in read-only mode which has the property cursor: default. After this commit: stat buttons and field inside stat buttons will have cursor pointer always as we override the CSS rule for the field inside stat buttons. TaskID-2479807 closes odoo/odoo#73365 X-original-commit: 761d4f6634c98de3425cb40314d91606ab5fad57 Signed-off-by: Simon Genin (ges@odoo) --- addons/web/static/src/legacy/scss/form_view.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/web/static/src/legacy/scss/form_view.scss b/addons/web/static/src/legacy/scss/form_view.scss index 8a27feb964a..a3e0991f2bd 100644 --- a/addons/web/static/src/legacy/scss/form_view.scss +++ b/addons/web/static/src/legacy/scss/form_view.scss @@ -416,6 +416,12 @@ $o-form-label-margin-right: 0px; } } + &:not(:disabled) { + > .o_stat_info .o_field_widget, > span .o_field_widget { + cursor: pointer; + } + } + &:not(:hover) .o_stat_info > .o_hover { display: none !important; }