Metadata-Version: 2.1
Name: odoo-addon-web_company_context_highlight
Version: 19.0.1.0.0.2
Requires-Dist: odoo==19.0.*
Summary: Highlight the company switcher when multiple companies are selected
Home-page: https://github.com/OCA/web
License: LGPL-3
Author: Acsone, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 19.0
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Description-Content-Type: text/x-rst

.. 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:e7d371068bb835bfcf14b5909de48dd0900be0bac8a939338d49e966b337af09
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |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/19.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-19-0/web-19-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=19.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

  |company switcher with multiple companies selected|

- with one company selected

  |company switcher with one company selected|

.. |company switcher with multiple companies selected| image:: https://raw.githubusercontent.com/OCA/web/19.0/web_company_context_highlight/static/img/web_company_context_highlight_multiple_companies_selected.png
.. |company switcher with one company selected| image:: https://raw.githubusercontent.com/OCA/web/19.0/web_company_context_highlight/static/img/web_company_context_highlight_one_company_selected.png

**Table of contents**

.. contents::
   :local:

Configuration
=============

To configure the highlight colors:

1. Go to **Settings** > **General Settings**.
2. Scroll to the **Companies** section.
3. Under **Company Switcher Highlight**, set the desired **Background
   Color** and **Text Color** using the color pickers.
4. Click **Save**.

|color configuration|

Alternatively, you can configure these values by modifying the following
System Parameters (in debug mode, under **Settings** > **Technical** >
**System Parameters**):

- ``web_company_context_highlight.color``: The background color code
  (default: ``#ffc107``).
- ``web_company_context_highlight.text_color``: The text color code
  (default: ``#212529``).

.. |color configuration| image:: https://raw.githubusercontent.com/OCA/web/19.0/web_company_context_highlight/static/img/web_company_context_highlight_config_color.png

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:%2019.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/19.0/web_company_context_highlight>`_ project on GitHub.

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