Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] web_company_color: Migration to version 18.0 #3110

Merged
merged 42 commits into from
Mar 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
d25286f
[12.0][ADD] web_company_color (#1253)
Tardo May 23, 2019
585c24c
[ADD] icon.png
OCA-git-bot May 23, 2019
4f4d950
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
27825d9
[FIX] web_company_color: changed scss sanitized values
Tardo Sep 7, 2019
2c41c75
web_company_color 12.0.1.1.0
OCA-git-bot Sep 10, 2019
a6e5f3e
Added translation using Weblate (Croatian)
badbole Nov 18, 2019
07e58bf
[IMP] web_company_color: black, isort, prettier
Tardo Mar 19, 2020
c29ad89
[MIG] web_widget_color: Migration to 13.0
Tardo Mar 19, 2020
571c172
Added translation using Weblate (Italian)
alessandro-fiorino May 16, 2020
c6f5aa0
Translated using Weblate (Chinese (Simplified))
liweijie0812 Jul 8, 2020
7123508
Added translation using Weblate (Dutch)
tarteo Nov 11, 2020
63c7aff
[FIX] web_company_color: Resilient tests
pedrobaeza Dec 7, 2020
3daae62
[MIG] web_company_color: Migration to 14.0
ozono Jan 21, 2021
d070519
Added translation using Weblate (German)
Corneliuus Oct 13, 2021
3646085
Added translation using Weblate (Catalan)
extrememicro Nov 18, 2021
6c61984
[IMP] web_company_color: black, isort, prettier
BernatPForgeFlow Dec 22, 2021
00bb77a
[MIG] web_company_color: Migration to 15.0
BernatPForgeFlow Dec 23, 2021
9c38930
[FIX] web_company_color: Recalculated color when we do not want
CarlosRoca13 Mar 3, 2022
9decd16
web_company_color 15.0.1.1.0
OCA-git-bot Mar 3, 2022
5789d73
Translated using Weblate (German)
NICO-SOLUTIONS Dec 9, 2022
feb214c
[MIG] web_company_color: Migration to 16.0
LoisRForgeFlow Jun 7, 2023
5cd0956
[FIX] web_company_color: unaligned button view
dsolanki-initos Jun 13, 2023
5f1142e
web_company_color 16.0.1.1.0
OCA-git-bot Jun 14, 2023
a3b05b4
[IMP] web_company_color: Support button and link customizing
hbrunn Apr 10, 2021
329fd05
Update scss selectors after JQuery3 Update
aleuffre Jul 6, 2022
5097620
Translated using Weblate (German)
NICO-SOLUTIONS Jun 20, 2023
50ff2ba
Translated using Weblate (Dutch)
Jan-Onestein Aug 7, 2023
2ec83a2
Translated using Weblate (Spanish)
Ivorra78 Aug 27, 2023
094698c
[FIX] web_company_color: Changing just one color fixed
EvaSForgeFlow Aug 30, 2023
475802f
Added translation using Weblate (French)
remi-filament Nov 6, 2023
6f9cb42
Translated using Weblate (Spanish)
Ivorra78 Nov 7, 2023
e2ec47d
Translated using Weblate (Italian)
mymage Nov 27, 2023
b7c5e33
Added translation using Weblate (Portuguese)
peterromao Jan 29, 2024
2a45250
[FIX] web_company_color: Set defaults hardcoded to avoid errors charg…
CarlosRoca13 Jul 30, 2024
69f8079
[FIX] web_company_color: Colors where not shown correctly
etobella Oct 4, 2024
d48bee0
[IMP] web_company_color: pre-commit auto fixes
ArnauCForgeFlow Dec 17, 2024
e6aaf45
[MIG] web_company_color: Migration to 17.0
ArnauCForgeFlow Dec 18, 2024
3b85767
[IMP] web_company_color: apply colors in debug assets and edit menu c…
ThiagoMForgeFlow Jan 8, 2025
d41864a
Translated using Weblate (Italian)
mymage Jan 10, 2025
1d61a7e
[IMP] web_company_color: change menu systray colors
ThiagoMForgeFlow Jan 21, 2025
56b01b0
Translated using Weblate (Spanish)
macagua Feb 6, 2025
21ff50b
[MIG] web_company_color: Migration to version 18.0
pilarvargas-tecnativa Feb 27, 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
100 changes: 100 additions & 0 deletions web_company_color/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
=================
Web Company Color
=================

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

.. |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/licence-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/18.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-18-0/web-18-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=18.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:%2018.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

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/18.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": "18.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()

Check warning on line 8 in web_company_color/hooks.py

View check run for this annotation

Codecov / codecov/patch

web_company_color/hooks.py#L8

Added line #L8 was not covered by tests


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