diff --git a/README.md b/README.md index 169dee141fd6..18c347ea793a 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ addon | version | maintainers | summary [web_copy_confirm](web_copy_confirm/) | 18.0.1.0.0 | | Show confirmation dialogue before copying records [web_dark_mode](web_dark_mode/) | 18.0.1.0.0 | | Enabled Dark Mode for the Odoo Backend [web_datetime_picker_default_time](web_datetime_picker_default_time/) | 18.0.1.0.0 | grindtildeath | Allows to define a default time on datetime picker -[web_dialog_size](web_dialog_size/) | 18.0.1.0.3 | | A module that lets the user expand a dialog box to the full screen width. +[web_dialog_size](web_dialog_size/) | 18.0.1.0.4 | | A module that lets the user expand a dialog box to the full screen width. [web_disable_export_group](web_disable_export_group/) | 18.0.1.0.0 | | Web Disable Export Group [web_editor_class_selector](web_editor_class_selector/) | 18.0.1.0.0 | carlos-lopez-tecnativa | Web editor class selector [web_editor_disable_chatgpt](web_editor_disable_chatgpt/) | 18.0.1.0.0 | | Web Disable ChatGPT @@ -46,6 +46,7 @@ addon | version | maintainers | summary [web_loading_block_ui](web_loading_block_ui/) | 18.0.1.0.0 | | Block the screen with a centered loading overlay while requests are pending [web_m2x_options](web_m2x_options/) | 18.0.1.0.3 | | web_m2x_options [web_m2x_options_manager](web_m2x_options_manager/) | 18.0.1.0.0 | | Adds an interface to manage the "Create" and "Create and Edit" options for specific models and fields. +[web_navbar_light](web_navbar_light/) | 18.0.1.0.0 | smaddlsoft | Light main navbar for the backend [web_no_bubble](web_no_bubble/) | 18.0.1.0.0 | | Remove the bubbles from the web interface [web_notify](web_notify/) | 18.0.1.1.2 | | Send notification messages to user [web_notify_channel_message](web_notify_channel_message/) | 18.0.1.0.1 | | Send an instant notification to channel users when a new message is posted diff --git a/setup/_metapackage/pyproject.toml b/setup/_metapackage/pyproject.toml index 437ecff88179..2f03cbe13872 100644 --- a/setup/_metapackage/pyproject.toml +++ b/setup/_metapackage/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "odoo-addons-oca-web" -version = "18.0.20261005.0" +version = "18.0.20261106.0" dependencies = [ "odoo-addon-web_action_conditionable==18.0.*", "odoo-addon-web_calendar_slot_duration==18.0.*", @@ -26,6 +26,7 @@ dependencies = [ "odoo-addon-web_loading_block_ui==18.0.*", "odoo-addon-web_m2x_options==18.0.*", "odoo-addon-web_m2x_options_manager==18.0.*", + "odoo-addon-web_navbar_light==18.0.*", "odoo-addon-web_no_bubble==18.0.*", "odoo-addon-web_notify==18.0.*", "odoo-addon-web_notify_channel_message==18.0.*", diff --git a/web_dialog_size/README.rst b/web_dialog_size/README.rst index 8e2581e53f20..52301a575552 100644 --- a/web_dialog_size/README.rst +++ b/web_dialog_size/README.rst @@ -11,7 +11,7 @@ Web Dialog Size !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:a306b45986bf786b971c49a98fb0d1a7af7ca0317b0eee223c5bb7bf8505d836 + !! source digest: sha256:fd309a2274537320f4d06b70ac859e35f028500ebc5f401ee18c200b12fe88c5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -96,6 +96,7 @@ Contributors - Jairo Llopis - Ernesto Tejeda - Carlos Roca + - Sergio Teruel - Sudhir Arya - Pierre Pizzetta diff --git a/web_dialog_size/__manifest__.py b/web_dialog_size/__manifest__.py index 86d6955bf95f..551bf35ffd18 100644 --- a/web_dialog_size/__manifest__.py +++ b/web_dialog_size/__manifest__.py @@ -15,7 +15,7 @@ "Odoo Community Association (OCA)", "website": "https://github.com/OCA/web", "category": "web", - "version": "18.0.1.0.3", + "version": "18.0.1.0.4", "license": "AGPL-3", "depends": ["web"], "installable": True, diff --git a/web_dialog_size/readme/CONTRIBUTORS.md b/web_dialog_size/readme/CONTRIBUTORS.md index 8b9a9b08cd77..e1d585b8ac31 100644 --- a/web_dialog_size/readme/CONTRIBUTORS.md +++ b/web_dialog_size/readme/CONTRIBUTORS.md @@ -10,6 +10,7 @@ - Jairo Llopis - Ernesto Tejeda - Carlos Roca + - Sergio Teruel - Sudhir Arya \<\> - Pierre Pizzetta \<\> - Mantas Šniukas \<\> diff --git a/web_dialog_size/static/description/index.html b/web_dialog_size/static/description/index.html index de66368f3edb..8377f2358da5 100644 --- a/web_dialog_size/static/description/index.html +++ b/web_dialog_size/static/description/index.html @@ -3,7 +3,7 @@ -README.rst +Web Dialog Size + + +
+ + + +Odoo Community Association + +
+

Web Navbar Light

+ +

Beta License: LGPL-3 OCA/web Translate me on Weblate Try me on Runboat

+

Replaces the solid purple main navbar of the backend with a light one, +separated from the page by a thin line. Menu entries use the regular +text colors and the brand color is kept for the name of the current app.

+

A strongly colored bar draws the eye away from the content on every +screen. A light navbar keeps the focus on the view below it, and is +closer to what most web applications use today.

+

Only the navbar variables of web are overridden, so the module is +easy to review, to combine with other modules and to uninstall.

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Humanilog
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +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.

+

Current maintainer:

+

smaddlsoft

+

This module is part of the OCA/web project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+
+ + diff --git a/web_navbar_light/static/src/webclient/navbar/navbar.scss b/web_navbar_light/static/src/webclient/navbar/navbar.scss new file mode 100644 index 000000000000..da405f9e015c --- /dev/null +++ b/web_navbar_light/static/src/webclient/navbar/navbar.scss @@ -0,0 +1,17 @@ +@if $o-webclient-color-scheme == bright { + .o_main_navbar { + position: relative; + + // Drawn above the menu entries: they take the full height of the + // navbar and would hide a border or an inset shadow + &::after { + content: ""; + position: absolute; + right: 0; + bottom: 0; + left: 0; + border-bottom: 1px solid $o-gray-300; + pointer-events: none; + } + } +} diff --git a/web_navbar_light/static/src/webclient/navbar/navbar.variables.scss b/web_navbar_light/static/src/webclient/navbar/navbar.variables.scss new file mode 100644 index 000000000000..6d7abbd07dd9 --- /dev/null +++ b/web_navbar_light/static/src/webclient/navbar/navbar.variables.scss @@ -0,0 +1,24 @@ +// Dark mode is left to web_dark_mode, which has its own navbar variables +$o-navbar-background: null !default; +$o-navbar-border-bottom: null !default; +$o-navbar-entry-color: null !default; +$o-navbar-entry-color--hover: null !default; +$o-navbar-entry-bg--hover: null !default; +$o-navbar-brand-color: null !default; +$o-navbar-badge-color: null !default; +$o-navbar-badge-text-shadow: null !default; + +@if $o-webclient-color-scheme == bright { + $o-navbar-background: $o-view-background-color !default; + // The line is drawn in navbar.scss + $o-navbar-border-bottom: 0 !default; + + $o-navbar-entry-color: $o-gray-700 !default; + $o-navbar-entry-color--hover: $o-gray-900 !default; + $o-navbar-entry-bg--hover: mix($o-brand-odoo, $o-navbar-background, 8%) !default; + + $o-navbar-brand-color: $o-brand-odoo !default; + + $o-navbar-badge-color: $o-white !default; + $o-navbar-badge-text-shadow: none !default; +} diff --git a/web_navbar_light/tests/__init__.py b/web_navbar_light/tests/__init__.py new file mode 100644 index 000000000000..c175e7c2b200 --- /dev/null +++ b/web_navbar_light/tests/__init__.py @@ -0,0 +1 @@ +from . import test_assets diff --git a/web_navbar_light/tests/test_assets.py b/web_navbar_light/tests/test_assets.py new file mode 100644 index 000000000000..a2b6a1151504 --- /dev/null +++ b/web_navbar_light/tests/test_assets.py @@ -0,0 +1,22 @@ +# Copyright 2026 Humanilog (https://humanilog.org) +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). + +import re + +from odoo.tests import TransactionCase + + +class TestAssets(TransactionCase): + def test_navbar_style(self): + bundle = self.env["ir.qweb"]._get_asset_bundle("web.assets_backend", js=False) + css = bundle.preprocess_css() + self.assertFalse(bundle.css_errors) + # A rule follows either another rule or the header comment of its file + navbar = " ".join(re.findall(r"[}/]\s*\.o_main_navbar\s*\{([^}]*)\}", css)) + self.assertRegex(navbar, r"(?i)background:\s*(white|#fff(fff)?)\b") + self.assertRegex(navbar, r"border-bottom:\s*0\b") + self.assertRegex( + css, + r"(?i)\.o_main_navbar::after\s*\{[^}]*" + r"border-bottom:\s*1px solid #dee2e6\b", + )