From 5350dbd63146e9638ee4c503cae025c192feb10d Mon Sep 17 00:00:00 2001 From: Achraf Date: Tue, 4 Oct 2022 06:04:57 +0000 Subject: [PATCH] [FIX] web: Correct checklist style in report editor Steps: - Go to studio - Open report editor in any report - Use Text block - Insert /checklist Normal bullets without boxes are used in the report, because the checklist are styled separately in web_editor/static/lib/odoo-editor/src/checklist.css opw-2995045 closes odoo/odoo#102072 X-original-commit: 9b4a1d3a45d294797813d653090b3a3c541210f5 Signed-off-by: Aaron Bohy (aab) Signed-off-by: Achraf --- .../src/webclient/actions/reports/report.scss | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/addons/web/static/src/webclient/actions/reports/report.scss b/addons/web/static/src/webclient/actions/reports/report.scss index c0509d11895..c6093f4a3d8 100644 --- a/addons/web/static/src/webclient/actions/reports/report.scss +++ b/addons/web/static/src/webclient/actions/reports/report.scss @@ -107,6 +107,35 @@ ol { padding-left: 0; } +/* Checklist */ +ul.o_checklist { + > li { + list-style: none; + position: relative; + margin-left: 20px; + + &:not(.oe-nested):before { + content: ''; + position: absolute; + left: -20px; + display: block; + height: 14px; + width: 14px; + top: 1px; + border: 1px solid; + cursor: pointer; + } + &.o_checked:after { + content: "✓"; + transition: opacity .5s; + position: absolute; + left: -18px; + top: -1px; + opacity: 1; + } + } +} + // Wkhtmltopdf doesn't handle flexbox properly, both the content // of columns and columns themselves does not wrap over new lines // when needed: the font of the pdf will reduce to make the content