From 607fe707c9ce7fd8768d0d8b1c9dcb0a06b3b61d Mon Sep 17 00:00:00 2001 From: Carlos Roca Date: Wed, 24 Apr 2024 09:02:03 +0200 Subject: [PATCH] [IMP] web_refresher: Charge t-inherit-mode extension views just after the main By doing this, the extension view is charged just after the main, so if some other views are using this other, to make a primary one, like project is doing for project.task control_panel, the refresher will continue be shown. --- web_refresher/__manifest__.py | 9 ++++++++- web_refresher/static/description/index.html | 11 +++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/web_refresher/__manifest__.py b/web_refresher/__manifest__.py index 278da3d6f..e21975b7e 100644 --- a/web_refresher/__manifest__.py +++ b/web_refresher/__manifest__.py @@ -13,7 +13,14 @@ "web_refresher/static/src/js/refresher.esm.js", "web_refresher/static/src/js/control_panel.esm.js", "web_refresher/static/src/xml/refresher.xml", - "web_refresher/static/src/xml/control_panel.xml", + # Load the modification of the master template just after it, + # for having the modification in all the primary extensions. + # Example: the project primary view. + ( + "after", + "web/static/src/search/control_panel/control_panel.xml", + "web_refresher/static/src/xml/control_panel.xml", + ), ], }, } diff --git a/web_refresher/static/description/index.html b/web_refresher/static/description/index.html index f66d69279..379851c07 100644 --- a/web_refresher/static/description/index.html +++ b/web_refresher/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code { margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.option { span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -422,7 +423,9 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.