Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions setup/web_company_context_highlight/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
115 changes: 115 additions & 0 deletions web_company_context_highlight/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=============================
Web Company Context Highlight
=============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c430fb18f50a6b23688d23cddf31b3343447d8c5154739dc1911be05e79916e8
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
:target: https://github.com/OCA/web/tree/16.0/web_company_context_highlight
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_company_context_highlight
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module highlights the company switcher in the top bar of the web
client when multiple companies are selected.

In a multi-company Odoo environment, users can easily lose track of
their active company context. When more than one company is selected,
they might unintentionally create or view records in the wrong context.

By applying a visual highlight to the company switcher when multiple
companies are selected, this module provides an immediate visual cue,
helping users remain aware of their active companies and reducing the
risk of data entry errors.

- with multiple companies selected

|web_company_context_highlight_multiple_companies_selected|

- with one company selected

|web_company_context_highlight_one_company_selected|

.. |web_company_context_highlight_multiple_companies_selected| image:: https://raw.githubusercontent.com/OCA/web/16.0/web_company_context_highlight/static/img/web_company_context_highlight_multiple_companies_selected.png
.. |web_company_context_highlight_one_company_selected| image:: https://raw.githubusercontent.com/OCA/web/16.0/web_company_context_highlight/static/img/web_company_context_highlight_one_company_selected.png

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

Known issues / Roadmap
======================

backport configuration introduced by original PR
(https://github.com/OCA/web/pull/3611).

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/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 <https://github.com/OCA/web/issues/new?body=module:%20web_company_context_highlight%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Acsone

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

.. |maintainer-pverkest| image:: https://github.com/pverkest.png?size=40px
:target: https://github.com/pverkest
:alt: pverkest

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-pverkest|

This module is part of the `OCA/web <https://github.com/OCA/web/tree/16.0/web_company_context_highlight>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file.
22 changes: 22 additions & 0 deletions web_company_context_highlight/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2026 Acsone
# @author Pierre Verkest <pierre.verkest@apycod.fr>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
"name": "Web Company Context Highlight",
"summary": "Highlight the company switcher when multiple companies are selected",
"version": "16.0.1.0.0",
"author": "Acsone, Odoo Community Association (OCA)",
"maintainers": ["pverkest"],
"website": "https://github.com/OCA/web",
"development_status": "Alpha",
"license": "LGPL-3",
"category": "Web",
"depends": ["web", "base_setup"],
"assets": {
"web.assets_backend": [
"web_company_context_highlight/static/src/**/*.scss",
"web_company_context_highlight/static/src/**/*.xml",
],
},
}
3 changes: 3 additions & 0 deletions web_company_context_highlight/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
13 changes: 13 additions & 0 deletions web_company_context_highlight/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
This module highlights the company switcher in the top bar of the web client when multiple companies are selected.

In a multi-company Odoo environment, users can easily lose track of their active company context. When more than one company is selected, they might unintentionally create or view records in the wrong context.

By applying a visual highlight to the company switcher when multiple companies are selected, this module provides an immediate visual cue, helping users remain aware of their active companies and reducing the risk of data entry errors.

* with multiple companies selected

![web_company_context_highlight_multiple_companies_selected](../static/img/web_company_context_highlight_multiple_companies_selected.png)

* with one company selected

![web_company_context_highlight_one_company_selected](../static/img/web_company_context_highlight_one_company_selected.png)
1 change: 1 addition & 0 deletions web_company_context_highlight/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
backport configuration introduced by original PR (https://github.com/OCA/web/pull/3611).
Loading
Loading