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

[17.0][MIG] web_company_color: Migration to 17.0 #8

Merged
merged 70 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
30a6de4
[12.0][ADD] web_company_color (#1253)
Tardo May 23, 2019
37e75e1
[ADD] icon.png
OCA-git-bot May 23, 2019
3e0d553
[UPD] Update web_company_color.pot
oca-travis May 23, 2019
f4b38c7
[UPD] README.rst
OCA-git-bot Jul 29, 2019
d611c71
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
ea713f0
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
eeee9c1
[FIX] web_company_color: changed scss sanitized values
Tardo Sep 7, 2019
ff9c30c
web_company_color 12.0.1.1.0
OCA-git-bot Sep 10, 2019
f1efbb2
Added translation using Weblate (Croatian)
badbole Nov 18, 2019
8cb4d5a
Translated using Weblate (Croatian)
badbole Nov 18, 2019
512073e
[IMP] web_company_color: black, isort, prettier
Tardo Mar 19, 2020
67b97de
[MIG] web_widget_color: Migration to 13.0
Tardo Mar 19, 2020
d004aeb
[UPD] Update web_company_color.pot
oca-travis Apr 14, 2020
d91888a
[UPD] README.rst
OCA-git-bot Apr 14, 2020
2ccae6f
Update translation files
oca-transbot Apr 15, 2020
be0b51c
Added translation using Weblate (Italian)
alessandro-fiorino May 16, 2020
f61348c
Translated using Weblate (Italian)
alessandro-fiorino May 16, 2020
833ec13
Translated using Weblate (Chinese (Simplified))
liweijie0812 Jul 8, 2020
b391224
[UPD] README.rst
OCA-git-bot Jul 13, 2020
3aa48cf
[UPD] README.rst
OCA-git-bot Jul 13, 2020
8c1eec7
Added translation using Weblate (Dutch)
tarteo Nov 11, 2020
40c6c13
Translated using Weblate (Dutch)
tarteo Nov 11, 2020
013833a
[FIX] web_company_color: Resilient tests
pedrobaeza Dec 7, 2020
a456fd5
[MIG] web_company_color: Migration to 14.0
ozono Jan 21, 2021
1c6aaf3
[UPD] Update web_company_color.pot
oca-travis May 9, 2021
a03e975
[UPD] README.rst
OCA-git-bot May 9, 2021
a2e53b0
Added translation using Weblate (German)
Corneliuus Oct 13, 2021
9d1b7e4
Translated using Weblate (German)
Corneliuus Oct 13, 2021
ee6a06f
Added translation using Weblate (Catalan)
extrememicro Nov 18, 2021
95c93c1
Translated using Weblate (Catalan)
extrememicro Nov 18, 2021
5b662e5
[IMP] web_company_color: black, isort, prettier
BernatPForgeFlow Dec 22, 2021
78fac45
[MIG] web_company_color: Migration to 15.0
BernatPForgeFlow Dec 23, 2021
b91ced0
[UPD] Update web_company_color.pot
Dec 29, 2021
07579bc
[UPD] README.rst
OCA-git-bot Dec 29, 2021
650bf72
[FIX] web_company_color: Recalculated color when we do not want
CarlosRoca13 Mar 3, 2022
e829277
[UPD] Update web_company_color.pot
Mar 3, 2022
548f6d3
[UPD] README.rst
OCA-git-bot Mar 3, 2022
6b514ed
web_company_color 15.0.1.1.0
OCA-git-bot Mar 3, 2022
fdaa650
Update translation files
oca-transbot Mar 3, 2022
fa04774
Translated using Weblate (German)
NICO-SOLUTIONS Dec 9, 2022
666c5d4
[MIG] web_company_color: Migration to 16.0
LoisRForgeFlow Jun 7, 2023
f7b79ea
[UPD] Update web_company_color.pot
Jun 10, 2023
2df0e97
[UPD] README.rst
OCA-git-bot Jun 10, 2023
607410d
[FIX] web_company_color: unaligned button view
dsolanki-initos Jun 13, 2023
105b39d
[UPD] Update web_company_color.pot
Jun 14, 2023
45c7784
[UPD] README.rst
OCA-git-bot Jun 14, 2023
19db6c7
web_company_color 16.0.1.1.0
OCA-git-bot Jun 14, 2023
0f86b20
Update translation files
weblate Jun 14, 2023
9584401
[IMP] web_company_color: Support button and link customizing
hbrunn Apr 10, 2021
0b01fd0
Update scss selectors after JQuery3 Update
aleuffre Jul 6, 2022
ace27f4
Translated using Weblate (German)
NICO-SOLUTIONS Jun 20, 2023
74cdba5
Translated using Weblate (Dutch)
Jan-Onestein Aug 7, 2023
d43f2b4
Translated using Weblate (Spanish)
Ivorra78 Aug 27, 2023
3219619
[UPD] README.rst
OCA-git-bot Sep 3, 2023
19c5c67
[FIX] web_company_color: Changing just one color fixed
EvaSForgeFlow Aug 30, 2023
bfe0cd1
[BOT] post-merge updates
OCA-git-bot Sep 21, 2023
915d512
[UPD] Update web_company_color.pot
Nov 6, 2023
cea0668
[BOT] post-merge updates
OCA-git-bot Nov 6, 2023
b51386b
Update translation files
weblate Nov 6, 2023
1e0e461
Added translation using Weblate (French)
remi-filament Nov 6, 2023
212e1da
Translated using Weblate (French)
remi-filament Nov 6, 2023
8a58275
Translated using Weblate (Spanish)
Ivorra78 Nov 7, 2023
3f77dca
Translated using Weblate (Italian)
mymage Nov 27, 2023
4dfb64d
Added translation using Weblate (Portuguese)
peterromao Jan 29, 2024
209664a
Translated using Weblate (Portuguese)
peterromao Jan 29, 2024
60d9eeb
[FIX] web_company_color: Set defaults hardcoded to avoid errors charg…
CarlosRoca13 Jul 30, 2024
b018eda
[BOT] post-merge updates
OCA-git-bot Aug 5, 2024
e6c5d3a
[FIX] web_company_color: Colors where not shown correctly
etobella Oct 4, 2024
e042d7b
[BOT] post-merge updates
OCA-git-bot Oct 4, 2024
1d483d7
[17.0][MIG] web_company_color: Migration to 17.0
psugne Oct 16, 2024
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:8a814ac88491029ca65ef378be730bd05a762604c5913f24f9cf1c6ea5b160cb
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/17.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-17-0/web-17-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=17.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:%2017.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 <[email protected]> (ForgeFlow)
- Lois Rilo <[email protected]> (ForgeFlow)
- Simone Orsi <[email protected]>
- Iván Antón <[email protected]>
- Bernat Puig <[email protected]> (ForgeFlow)
- Dhara Solanki <[email protected]>
- `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/17.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 <[email protected]>
#
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).#
{
"name": "Web Company Color",
"category": "web",
"version": "17.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 <[email protected]>
# 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", "%s%%" % URL_BASE)]).unlink()


def post_init_hook(env):
env["res.company"].search([]).scss_create_or_update_attachment()
101 changes: 101 additions & 0 deletions web_company_color/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# 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 <[email protected]>\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 ""
128 changes: 128 additions & 0 deletions web_company_color/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# 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 <[email protected]>\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 ""

#~ 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