-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[17.0][MIG] web_company_color: Migration to 17.0
- Loading branch information
Showing
13 changed files
with
65 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,13 +17,13 @@ Web Company Color | |
: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/16.0/web_company_color | ||
: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-16-0/web-16-0-web_company_color | ||
: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=16.0 | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=17.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
@@ -38,50 +38,52 @@ This module change navbar colors based in the company logo colors. | |
Usage | ||
===== | ||
|
||
Go to company record and set a logo. Can see/modify applied colors on the "Navbar" section. | ||
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. | ||
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:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
`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>`_: | ||
- 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 | ||
- Jairo Llopis | ||
- Alexandre Díaz | ||
- Carlos Roca | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
----------- | ||
|
||
This module is maintained by the OCA. | ||
|
||
|
@@ -93,6 +95,6 @@ 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/16.0/web_company_color>`_ project on GitHub. | ||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
# Copyright 2019 Alexandre Díaz <[email protected]> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
from odoo import SUPERUSER_ID, api | ||
|
||
from .models.res_company import URL_BASE | ||
|
||
|
||
def uninstall_hook(cr, registry): | ||
env = api.Environment(cr, SUPERUSER_ID, {}) | ||
def uninstall_hook(env): | ||
env["ir.attachment"].search([("url", "=like", "%s%%" % URL_BASE)]).unlink() | ||
|
||
|
||
def post_init_hook(cr, registry): | ||
env = api.Environment(cr, SUPERUSER_ID, {}) | ||
def post_init_hook(env): | ||
env["res.company"].search([]).scss_create_or_update_attachment() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
- 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 |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
web_company_color/readme/ROADMAP.rst → web_company_color/readme/ROADMAP.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
White color is omitted in the addition operation to support images without alpha channel. | ||
White color is omitted in the addition operation to support images | ||
without alpha channel. |
3 changes: 2 additions & 1 deletion
3
web_company_color/readme/USAGE.rst → web_company_color/readme/USAGE.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
Go to company record and set a logo. Can see/modify applied colors on the "Navbar" section. | ||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters