[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) <ande@odoo.com>
This commit is contained in:
Antoine (ande)
2024-01-03 18:05:58 +00:00
parent e729355c83
commit bc87944b7a
+4
View File
@@ -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