diff --git a/web_favicon/README.rst b/web_favicon/README.rst index 13f9e61f2..a4644b0a9 100644 --- a/web_favicon/README.rst +++ b/web_favicon/README.rst @@ -17,13 +17,13 @@ Custom shortcut icon :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_favicon + :target: https://github.com/OCA/web/tree/18.0/web_favicon :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_favicon + :target: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_favicon :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 + :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -81,7 +81,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -115,6 +115,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 `_ project on GitHub. +This module is part of the `OCA/web `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/web_favicon/__manifest__.py b/web_favicon/__manifest__.py index 07a5aefa7..4f55e4a7a 100644 --- a/web_favicon/__manifest__.py +++ b/web_favicon/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Custom shortcut icon", - "version": "17.0.1.0.2", + "version": "18.0.1.0.0", "author": "Therp BV, " "Tecnativa, " "OERP Canada," diff --git a/web_favicon/models/res_company.py b/web_favicon/models/res_company.py index 5712d6b09..f0f468ae5 100644 --- a/web_favicon/models/res_company.py +++ b/web_favicon/models/res_company.py @@ -77,8 +77,8 @@ class ResCompany(models.Model): else False ) company = ( - self.browse(int(company_id.split(",")[0])).sudo() - if company_id and self.browse(int(company_id.split(",")[0])).sudo().favicon + self.browse(int(company_id.split("-")[0])).sudo() + if company_id and self.browse(int(company_id.split("-")[0])).sudo().favicon else False ) if company: diff --git a/web_favicon/static/description/index.html b/web_favicon/static/description/index.html index 633d57afc..cc6aab455 100644 --- a/web_favicon/static/description/index.html +++ b/web_favicon/static/description/index.html @@ -369,7 +369,7 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:d484f6acfd0e0513696306b9fc933198baadece9a848422172ea0b51cf7633c4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

This module was written to allow you to customize your Odoo instance’s shortcut icon (aka favicon). This is useful for branding purposes, but also for integrators who have many different Odoo instances running and @@ -425,7 +425,7 @@ per company.

Bugs are tracked on GitHub 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.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -456,7 +456,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

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 project on GitHub.

+

This module is part of the OCA/web project on GitHub.

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

diff --git a/web_favicon/tests/test_web_favicon.py b/web_favicon/tests/test_web_favicon.py index 5fbb493b3..b6ea4d631 100644 --- a/web_favicon/tests/test_web_favicon.py +++ b/web_favicon/tests/test_web_favicon.py @@ -5,7 +5,7 @@ from PIL import Image from odoo.tests import tagged from odoo.tests.common import TransactionCase -from odoo.tools import base64_to_image, image_to_base64 +from odoo.tools.image import base64_to_image, image_to_base64 from odoo.addons.website.tools import MockRequest