From 78cbdc604ec6ef48ef291d354126d7b171eaec64 Mon Sep 17 00:00:00 2001 From: "Anh Thao Pham (pta)" Date: Fri, 8 Dec 2023 10:48:01 +0000 Subject: [PATCH] [FIX] web: fix checklist and blockquote style in report MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Steps to reproduce: - Go to Sales and create a quotation - In "Terms and conditions" field, add a Checklist and a Quote, using "/" command - Print the quotation => Checkboxes are replaced by bullets and blockquote has no style. Solution: For blockquote in reports, use the same style than web_editor: https://github.com/odoo/odoo/blob/b2fa69202c6b3ab677973643711ccd561a2edaea/addons/web_editor/static/src/scss/web_editor.common.scss#L648-L654 opw-3349082 closes odoo/odoo#147619 X-original-commit: 8d069bb036dea9b0fa68e89a8a1886424b6fcc46 Signed-off-by: Adrien Dieudonné (adr) Signed-off-by: Anh Thao Pham (pta) --- .../web/static/src/webclient/actions/reports/report.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addons/web/static/src/webclient/actions/reports/report.scss b/addons/web/static/src/webclient/actions/reports/report.scss index f75f5796f2c..65346da8527 100644 --- a/addons/web/static/src/webclient/actions/reports/report.scss +++ b/addons/web/static/src/webclient/actions/reports/report.scss @@ -164,6 +164,13 @@ ul.o_checklist { } } +blockquote { + padding: $spacer/2 $spacer; + border-left: 5px solid; + border-color: map-get($grays, '300'); + font-style: italic; +} + // 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