From bc87944b7ab4eb554cb9abcbd6c95ef92964a323 Mon Sep 17 00:00:00 2001 From: "Antoine (ande)" Date: Mon, 25 Sep 2023 20:18:51 +0200 Subject: [PATCH] [FIX] web_editor: document layout has color issue Current behaviour: When changing the text color in the document layout of the company to one of the first row colors, the text stays black in the preview of the document. Steps to reproduce: 1. Go to Settings 2. Click on Configure Document Layout 3. In Company Details, highlight the text 4. Change the font color to any of the first row 5. (By example the color #35979c) 6. The text color in the preview is still black 7. (Same when exporting to PDF) Cause of the issue: The css code for colors in top row (o-color-1 to 6) is generated in web_editor (.text-o-color-1 to 6) and was not in the report_assets_common bundle See https://github.com/odoo/odoo/blob/01b42c7d76c814e13325f8880dc9de765b0f43c8/addons/web_editor/static/src/scss/web_editor.common.scss#L662 opw-3360456 closes odoo/odoo#147645 X-original-commit: 0b914f3d0dc209ca87837feb15e6ec3f063be534 Signed-off-by: Antoine Demany (ande) --- addons/web_editor/__manifest__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/web_editor/__manifest__.py b/addons/web_editor/__manifest__.py index e116b99463f..14f73b205bf 100644 --- a/addons/web_editor/__manifest__.py +++ b/addons/web_editor/__manifest__.py @@ -237,6 +237,10 @@ Odoo Web Editor widget. 'web_editor/static/src/js/frontend/loadWysiwygFromTextarea.js', ], + 'web.report_assets_common': [ + 'web_editor/static/src/scss/bootstrap_overridden.scss', + 'web_editor/static/src/scss/web_editor.common.scss', + ], #---------------------------------------------------------------------- # SUB BUNDLES