From 5b4904857bbca333e6c2ea7d334fbf86dc105cee Mon Sep 17 00:00:00 2001 From: abd-msyukyu-odoo Date: Fri, 13 May 2022 17:19:09 +0000 Subject: [PATCH] [FIX] knowledge: restore web_editor.backend style - What is Broken ? The file `web_editor.backend.scss` was incorrectly removed for every module by the Knowledge `__manifest__`. i.e.: The iframe in mass_mailing became too small, breaking the mailing preview. - Fix The file is restored. Task-2853336 closes odoo/odoo#91385 Signed-off-by: Thibault Delavallee (tde) --- addons/knowledge/__manifest__.py | 1 - addons/knowledge/static/src/scss/knowledge_editor.scss | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/addons/knowledge/__manifest__.py b/addons/knowledge/__manifest__.py index b2c13c5393b..3ddaee40f4c 100644 --- a/addons/knowledge/__manifest__.py +++ b/addons/knowledge/__manifest__.py @@ -36,7 +36,6 @@ 'post_init_hook': '_init_private_article_per_user', 'assets': { 'web.assets_backend': [ - ('remove', 'web_editor/static/src/scss/web_editor.backend.scss'), 'web/static/fonts/fonts.scss', 'knowledge/static/src/components/*/*.scss', 'knowledge/static/src/components/*/*.js', diff --git a/addons/knowledge/static/src/scss/knowledge_editor.scss b/addons/knowledge/static/src/scss/knowledge_editor.scss index e45163db307..9c91a8a31ed 100644 --- a/addons/knowledge/static/src/scss/knowledge_editor.scss +++ b/addons/knowledge/static/src/scss/knowledge_editor.scss @@ -18,6 +18,11 @@ $o-knowledge-font-configs: ( .o_knowledge_editor { min-height: 100%; + font-family: "Roboto", "Odoo Unicode Support Noto", sans-serif; + font-weight: 400; + font-size: 1rem; + line-height: 1.5; + color: #212529; .oe_form_field { display: flex; flex-direction: column; @@ -29,11 +34,6 @@ $o-knowledge-font-configs: ( } .note-editable, .o_readonly { - font-family: "Roboto", "Odoo Unicode Support Noto", sans-serif; - font-weight: 400; - font-size: 1rem; - line-height: 1.5; - color: #212529; flex-grow: 1; padding-top: 1rem !important;