Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
bac69a3
[12.0][ADD] web_company_color (#1253)
Tardo May 23, 2019
1ccf5d1
[ADD] icon.png
OCA-git-bot May 23, 2019
0227db1
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
2eb0ce9
[FIX] web_company_color: changed scss sanitized values
Tardo Sep 7, 2019
a938348
web_company_color 12.0.1.1.0
OCA-git-bot Sep 10, 2019
1a90bcc
Added translation using Weblate (Croatian)
badbole Nov 18, 2019
2b37f35
[IMP] web_company_color: black, isort, prettier
Tardo Mar 19, 2020
8b63634
[MIG] web_widget_color: Migration to 13.0
Tardo Mar 19, 2020
ed5762e
Added translation using Weblate (Italian)
alessandro-fiorino May 16, 2020
c83f0d2
Translated using Weblate (Chinese (Simplified))
liweijie0812 Jul 8, 2020
243448d
Added translation using Weblate (Dutch)
tarteo Nov 11, 2020
71fb15b
[FIX] web_company_color: Resilient tests
pedrobaeza Dec 7, 2020
88064a0
[MIG] web_company_color: Migration to 14.0
ozono Jan 21, 2021
3102862
Added translation using Weblate (German)
Corneliuus Oct 13, 2021
8a817bd
Added translation using Weblate (Catalan)
ofonseca-pyming Nov 18, 2021
9d33f05
[IMP] web_company_color: black, isort, prettier
BernatPForgeFlow Dec 22, 2021
d694010
[MIG] web_company_color: Migration to 15.0
BernatPForgeFlow Dec 23, 2021
ea2ebe0
[FIX] web_company_color: Recalculated color when we do not want
CarlosRoca13 Mar 3, 2022
afdebe5
web_company_color 15.0.1.1.0
OCA-git-bot Mar 3, 2022
c5105ad
Translated using Weblate (German)
NICO-SOLUTIONS Dec 9, 2022
c85606d
[MIG] web_company_color: Migration to 16.0
LoisRForgeFlow Jun 7, 2023
d61039c
[FIX] web_company_color: unaligned button view
dsolanki-initos Jun 13, 2023
8bf8ce2
web_company_color 16.0.1.1.0
OCA-git-bot Jun 14, 2023
3448b5c
[IMP] web_company_color: Support button and link customizing
hbrunn Apr 10, 2021
c98044d
Update scss selectors after JQuery3 Update
HekkiMelody Jul 6, 2022
35674a5
Translated using Weblate (German)
NICO-SOLUTIONS Jun 20, 2023
ed4fec8
Translated using Weblate (Dutch)
Jan-Onestein Aug 7, 2023
08e7142
Translated using Weblate (Spanish)
Ivorra78 Aug 27, 2023
54048d1
[FIX] web_company_color: Changing just one color fixed
EvaSForgeFlow Aug 30, 2023
3a5ca94
Added translation using Weblate (French)
remi-filament Nov 6, 2023
0ab4240
Translated using Weblate (Spanish)
Ivorra78 Nov 7, 2023
1f7dba0
Translated using Weblate (Italian)
mymage Nov 27, 2023
b23701c
Added translation using Weblate (Portuguese)
peterromao Jan 29, 2024
385fd78
[FIX] web_company_color: Set defaults hardcoded to avoid errors charg…
CarlosRoca13 Jul 30, 2024
038ff3e
[FIX] web_company_color: Colors where not shown correctly
etobella Oct 4, 2024
090c03e
[IMP] web_company_color: pre-commit auto fixes
ArnauCForgeFlow Dec 17, 2024
db9f7af
[MIG] web_company_color: Migration to 17.0
ArnauCForgeFlow Dec 18, 2024
fdd17be
[IMP] web_company_color: apply colors in debug assets and edit menu c…
ThiagoMForgeFlow Jan 8, 2025
157ffea
Translated using Weblate (Italian)
mymage Jan 10, 2025
e7495d4
[IMP] web_company_color: change menu systray colors
ThiagoMForgeFlow Jan 21, 2025
4bb28d7
Translated using Weblate (Spanish)
macagua Feb 6, 2025
2075268
[MIG] web_company_color: Migration to version 18.0
pilarvargas-tecnativa Feb 27, 2025
57dc176
[UPD] Update web_company_color.pot
Mar 6, 2025
701203a
[BOT] post-merge updates
OCA-git-bot Mar 6, 2025
1fe7ffb
[FIX] web_company_color: fix navbar buttons color
ArnauCForgeFlow Apr 30, 2025
fcad791
[BOT] post-merge updates
OCA-git-bot May 2, 2025
004c004
Translated using Weblate (French)
timbreckx May 7, 2025
bb7cd7e
[FIX] web_company_color: fix systray icon color
ArnauCForgeFlow Sep 1, 2025
343a264
[FIX] web_company_color: show company colors from active company
ArnauCForgeFlow Sep 4, 2025
02d660f
[BOT] post-merge updates
OCA-git-bot Sep 5, 2025
6cd4864
[BOT] post-merge updates
OCA-git-bot Sep 8, 2025
f6ecdf3
[IMP] web_company_color: mobile systray button
DavidJForgeFlow Oct 14, 2025
a6f10d4
[BOT] post-merge updates
OCA-git-bot Oct 15, 2025
94959d9
[MIG] web_company_color: Migration to 19.0
BhaveshHeliconia Oct 17, 2025
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
108 changes: 108 additions & 0 deletions web_company_color/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=================
Web Company Color
=================

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

.. |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-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-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_color
: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_color
: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 change navbar colors based in the company logo colors.

**Table of contents**

.. contents::
:local:

Usage
=====

Go to company record and set a logo. Can see/modify applied colors on
the "Navbar" section.

For optimal results use images with alpha channel.

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

White color is omitted in the addition operation to support images
without alpha channel.

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_color%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
-------

* Alexandre Díaz

Contributors
------------

- Jordi Ballester Alomar <jordi.ballester@forgeflow.com> (ForgeFlow)
- Lois Rilo <lois.rilo@forgeflow.com> (ForgeFlow)
- Simone Orsi <simone.orsi@camptocamp.com>
- Iván Antón <ozono@ozonomultimedia.com>
- Bernat Puig <bernat.puig@forgeflow.com> (ForgeFlow)
- Dhara Solanki <dhara.solanki@initos.com>
- `Tecnativa <https://www.tecnativa.com>`__:

- Jairo Llopis
- Alexandre Díaz
- Carlos Roca

- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

- Bhavesh Heliconia

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.

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions web_company_color/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
from .hooks import post_init_hook, uninstall_hook
from . import utils
18 changes: 18 additions & 0 deletions web_company_color/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Odoo, Open Source Web Company Color
# Copyright (C) 2019 Alexandre Díaz <dev@redneboa.es>
#
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).#
{
"name": "Web Company Color",
"category": "web",
"version": "19.0.1.0.0",
"author": "Alexandre Díaz, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/web",
"depends": ["web", "base_sparse_field"],
"data": ["view/assets.xml", "view/res_company.xml"],
"uninstall_hook": "uninstall_hook",
"post_init_hook": "post_init_hook",
"license": "AGPL-3",
"auto_install": False,
"installable": True,
}
12 changes: 12 additions & 0 deletions web_company_color/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2019 Alexandre Díaz <dev@redneboa.es>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from .models.res_company import URL_BASE


def uninstall_hook(env):
env["ir.attachment"].search([("url", "=like", f"{URL_BASE}%")]).unlink()


def post_init_hook(env):
env["res.company"].search([]).scss_create_or_update_attachment()
106 changes: 106 additions & 0 deletions web_company_color/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_company_color
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-11-18 17:36+0000\n"
"Last-Translator: Dept. Técnico <tecnico@extrememicro.es>\n"
"Language-Team: none\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: web_company_color
#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form
msgid ""
"<span class=\"fa fa-info fa-2x me-2\"/>\n"
" In order for the changes to take effect, please "
"refresh\n"
" the page."
msgstr ""

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg
msgid "Button Background Color"
msgstr ""

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg_hover
msgid "Button Background Color Hover"
msgstr ""

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_text
msgid "Button Text Color"
msgstr ""

#. module: web_company_color
#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form
msgid "Colors"
msgstr ""

#. module: web_company_color
#: model:ir.model,name:web_company_color.model_res_company
msgid "Companies"
msgstr "Companyies"

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__company_colors
msgid "Company Colors"
msgstr ""

#. module: web_company_color
#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form
msgid "Company Styles"
msgstr ""

#. module: web_company_color
#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form
msgid "Compute colors from logo"
msgstr ""

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text
msgid "Link Text Color"
msgstr ""

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text_hover
msgid "Link Text Color Hover"
msgstr ""

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_bg
msgid "Navbar Background Color"
msgstr ""

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_bg_hover
msgid "Navbar Background Color Hover"
msgstr ""

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text
msgid "Navbar Text Color"
msgstr ""

#. module: web_company_color
#: model:ir.model,name:web_company_color.model_ir_qweb
msgid "Qweb"
msgstr ""

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp
msgid "SCSS Modif. Timestamp"
msgstr ""

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_submenu_text
msgid "Submenu Text Color"
msgstr ""
133 changes: 133 additions & 0 deletions web_company_color/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_company_color
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-06-20 11:09+0000\n"
"Last-Translator: Nils Coenen <nils.coenen@nico-solutions.de>\n"
"Language-Team: none\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: web_company_color
#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form
msgid ""
"<span class=\"fa fa-info fa-2x me-2\"/>\n"
" In order for the changes to take effect, please "
"refresh\n"
" the page."
msgstr ""
"<span class=\"fa fa-info fa-2x me-2\"/>\n"
" Damit die Änderungen wirksam werden, aktualisieren "
"Sie bitte\n"
" die Seite."

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg
msgid "Button Background Color"
msgstr ""

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_bg_hover
msgid "Button Background Color Hover"
msgstr ""

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_button_text
msgid "Button Text Color"
msgstr ""

#. module: web_company_color
#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form
msgid "Colors"
msgstr ""

#. module: web_company_color
#: model:ir.model,name:web_company_color.model_res_company
msgid "Companies"
msgstr "Unternehmen"

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__company_colors
msgid "Company Colors"
msgstr "Unternehmensfarben"

#. module: web_company_color
#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form
msgid "Company Styles"
msgstr "Unternehmensstile"

#. module: web_company_color
#: model_terms:ir.ui.view,arch_db:web_company_color.view_company_form
msgid "Compute colors from logo"
msgstr "Farben aus Logo generieren"

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text
msgid "Link Text Color"
msgstr ""

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_link_text_hover
msgid "Link Text Color Hover"
msgstr ""

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_bg
msgid "Navbar Background Color"
msgstr "Navbar-Hintergrundfarbe"

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_bg_hover
msgid "Navbar Background Color Hover"
msgstr "Navbar Hintergrundfarbe Hover"

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_navbar_text
msgid "Navbar Text Color"
msgstr "Navbar Textfarbe"

#. module: web_company_color
#: model:ir.model,name:web_company_color.model_ir_qweb
msgid "Qweb"
msgstr "Qweb"

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__scss_modif_timestamp
msgid "SCSS Modif. Timestamp"
msgstr ""

#. module: web_company_color
#: model:ir.model.fields,field_description:web_company_color.field_res_company__color_submenu_text
msgid "Submenu Text Color"
msgstr ""

#~ msgid "Navbar Colors"
#~ msgstr "Navbar-Farben"

#~ msgid ""
#~ "<span class=\"fa fa-info fa-2x\"/>\n"
#~ " In order for the changes to take effect, please "
#~ "refresh\n"
#~ " the page."
#~ msgstr ""
#~ "<span class=\"fa fa-info fa-2x\"/>\n"
#~ " Damit die Änderungen wirksam werden, "
#~ "aktualisieren Sie bitte\n"
#~ " Sie die Seite."

#~ msgid "Display Name"
#~ msgstr "Anzeigename"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Zuletzt bearbeitet am"
Loading
Loading