Skip to content

Commit f5d0556

Browse files
[MIG] web_company_color: Migration to version 18.0
TT54364
1 parent b06df76 commit f5d0556

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

web_company_color/README.rst

+15-15
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Web Company Color
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
20-
:target: https://github.com/OCA/web/tree/17.0/web_company_color
20+
:target: https://github.com/OCA/web/tree/18.0/web_company_color
2121
:alt: OCA/web
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_company_color
23+
:target: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_company_color
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=17.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -55,7 +55,7 @@ Bug Tracker
5555
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
5656
In case of trouble, please check there if your issue has already been reported.
5757
If you spotted it first, help us to smash it by providing a detailed and welcomed
58-
`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**>`_.
58+
`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**>`_.
5959

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

@@ -70,17 +70,17 @@ Authors
7070
Contributors
7171
------------
7272

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

81-
- Jairo Llopis
82-
- Alexandre Díaz
83-
- Carlos Roca
81+
- Jairo Llopis
82+
- Alexandre Díaz
83+
- Carlos Roca
8484

8585
Maintainers
8686
-----------
@@ -95,6 +95,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
9595
mission is to support the collaborative development of Odoo features and
9696
promote its widespread use.
9797

98-
This module is part of the `OCA/web <https://github.com/OCA/web/tree/17.0/web_company_color>`_ project on GitHub.
98+
This module is part of the `OCA/web <https://github.com/OCA/web/tree/18.0/web_company_color>`_ project on GitHub.
9999

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

web_company_color/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"name": "Web Company Color",
77
"category": "web",
8-
"version": "17.0.1.2.0",
8+
"version": "18.0.1.0.0",
99
"author": "Alexandre Díaz, Odoo Community Association (OCA)",
1010
"website": "https://github.com/OCA/web",
1111
"depends": ["web", "base_sparse_field"],

web_company_color/hooks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
def uninstall_hook(env):
8-
env["ir.attachment"].search([("url", "=like", "%s%%" % URL_BASE)]).unlink()
8+
env["ir.attachment"].search([("url", "=like", f"{URL_BASE}%")]).unlink()
99

1010

1111
def post_init_hook(env):

web_company_color/static/description/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ <h1 class="title">Web Company Color</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:5ca2a7baff460d79cfe08003918418fa008f47a4dce22a66e362ba8bf9cd3a6b
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/web/tree/17.0/web_company_color"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_company_color"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/web&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/web/tree/18.0/web_company_color"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_company_color"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/web&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>This module change navbar colors based in the company logo colors.</p>
374374
<p><strong>Table of contents</strong></p>
375375
<div class="contents local topic" id="contents">
@@ -401,7 +401,7 @@ <h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
401401
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/web/issues">GitHub Issues</a>.
402402
In case of trouble, please check there if your issue has already been reported.
403403
If you spotted it first, help us to smash it by providing a detailed and welcomed
404-
<a class="reference external" href="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**">feedback</a>.</p>
404+
<a class="reference external" href="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**">feedback</a>.</p>
405405
<p>Do not contact contributors directly about support or help with technical issues.</p>
406406
</div>
407407
<div class="section" id="credits">
@@ -438,7 +438,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
438438
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
439439
mission is to support the collaborative development of Odoo features and
440440
promote its widespread use.</p>
441-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/web/tree/17.0/web_company_color">OCA/web</a> project on GitHub.</p>
441+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/web/tree/18.0/web_company_color">OCA/web</a> project on GitHub.</p>
442442
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
443443
</div>
444444
</div>

web_company_color/tests/test_res_company.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class TestResCompany(common.TransactionCase):
1313

1414
def _test_scss_attachment(self):
1515
num_scss = self.env["ir.attachment"].search_count(
16-
[("url", "ilike", "%s%%" % URL_BASE)]
16+
[("url", "ilike", f"{URL_BASE}%")]
1717
)
1818
num_companies = self.env["res.company"].search_count([])
1919
self.assertEqual(num_scss, num_companies, "Invalid scss attachments")

0 commit comments

Comments
 (0)