From 191b12b0cd120f7dc3c57230463259f866c877ae Mon Sep 17 00:00:00 2001 From: metatroncubeswdev Date: Sun, 27 Sep 2026 09:56:05 -0400 Subject: [PATCH] Brand website and backend browser tabs with TNCSC titles and favicon Set page-specific titles for website, login, and member portal routes while retaining dynamic titles for other pages. Replace the default favicon with the official TNCSC logo. Add TNCSC to the backend title service without losing action names or notification counters. Validated XML, title expressions, manifest entries, JavaScript syntax, and backend action/counter updates against the Odoo 19 title service. Live template rendering still requires deployment and module upgrade. --- addons/tncsc_deployment/__manifest__.py | 2 + .../static/src/js/browser_branding.js | 11 ++++++ .../views/browser_branding.xml | 39 +++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 addons/tncsc_deployment/static/src/js/browser_branding.js create mode 100644 addons/tncsc_deployment/views/browser_branding.xml diff --git a/addons/tncsc_deployment/__manifest__.py b/addons/tncsc_deployment/__manifest__.py index 3e203a1..40fb218 100644 --- a/addons/tncsc_deployment/__manifest__.py +++ b/addons/tncsc_deployment/__manifest__.py @@ -46,6 +46,7 @@ that applies to the community_* product modules. 'data/ir_cron.xml', 'views/website_pages.xml', 'views/website_header_overrides.xml', + 'views/browser_branding.xml', 'views/event_kanban_views.xml', 'views/community_dashboard_views.xml', 'views/login_templates.xml', @@ -67,6 +68,7 @@ that applies to the community_* product modules. 'tncsc_deployment/static/src/js/event_kanban_renderer.js', 'tncsc_deployment/static/src/js/community_dashboard.js', 'tncsc_deployment/static/src/js/global_sidebar.js', + 'tncsc_deployment/static/src/js/browser_branding.js', 'tncsc_deployment/static/src/xml/kanban_empty_column.xml', 'tncsc_deployment/static/src/xml/community_dashboard.xml', 'tncsc_deployment/static/src/xml/global_sidebar.xml', diff --git a/addons/tncsc_deployment/static/src/js/browser_branding.js b/addons/tncsc_deployment/static/src/js/browser_branding.js new file mode 100644 index 0000000..ed08f77 --- /dev/null +++ b/addons/tncsc_deployment/static/src/js/browser_branding.js @@ -0,0 +1,11 @@ +/** @odoo-module **/ + +import { registry } from "@web/core/registry"; + +// Keep Odoo's action titles and notification counters, with TNCSC as the brand. +registry.category("services").add("tncsc_browser_branding", { + dependencies: ["title"], + start(env, { title }) { + title.setParts({ tncsc: "TNCSC" }); + }, +}); diff --git a/addons/tncsc_deployment/views/browser_branding.xml b/addons/tncsc_deployment/views/browser_branding.xml new file mode 100644 index 0000000..716743b --- /dev/null +++ b/addons/tncsc_deployment/views/browser_branding.xml @@ -0,0 +1,39 @@ + + + + + + + +