Skip to content

Commit 709ef06

Browse files
[MIG] web_company_color: Migration to 19.0
1 parent a42b658 commit 709ef06

6 files changed

Lines changed: 28 additions & 21 deletions

File tree

web_company_color/README.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Web Company Color
1111
!! This file is generated by oca-gen-addon-readme !!
1212
!! changes will be overwritten. !!
1313
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14-
!! source digest: sha256:75f2396aade33370837fa8dc343dfb818e4b777b8115331fed547449727181f5
14+
!! source digest: sha256:622d249810675797d351ceaaa800f9df89d92067ce131c14087b0b92fbf78283
1515
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1616
1717
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -21,13 +21,13 @@ Web Company Color
2121
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2222
:alt: License: AGPL-3
2323
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
24-
:target: https://github.com/OCA/web/tree/18.0/web_company_color
24+
:target: https://github.com/OCA/web/tree/19.0/web_company_color
2525
:alt: OCA/web
2626
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27-
:target: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_company_color
27+
:target: https://translation.odoo-community.org/projects/web-19-0/web-19-0-web_company_color
2828
:alt: Translate me on Weblate
2929
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30-
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=18.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=19.0
3131
:alt: Try me on Runboat
3232

3333
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -59,7 +59,7 @@ Bug Tracker
5959
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
6060
In case of trouble, please check there if your issue has already been reported.
6161
If you spotted it first, help us to smash it by providing a detailed and welcomed
62-
`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**>`_.
62+
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_company_color%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
6363

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

@@ -86,6 +86,10 @@ Contributors
8686
- Alexandre Díaz
8787
- Carlos Roca
8888

89+
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__
90+
91+
- Bhavesh Heliconia
92+
8993
Maintainers
9094
-----------
9195

@@ -99,6 +103,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
99103
mission is to support the collaborative development of Odoo features and
100104
promote its widespread use.
101105

102-
This module is part of the `OCA/web <https://github.com/OCA/web/tree/18.0/web_company_color>`_ project on GitHub.
106+
This module is part of the `OCA/web <https://github.com/OCA/web/tree/19.0/web_company_color>`_ project on GitHub.
103107

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

web_company_color/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"name": "Web Company Color",
77
"category": "web",
8-
"version": "18.0.1.0.4",
8+
"version": "19.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/models/ir_qweb.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,15 @@ class QWeb(models.AbstractModel):
99
_inherit = "ir.qweb"
1010

1111
def _generate_asset_links_cache(
12-
self,
13-
bundle,
14-
css=True,
15-
js=True,
16-
assets_params=None,
17-
rtl=False,
12+
self, bundle, css=True, js=True, assets_params=None, rtl=False, autoprefix=False
1813
):
1914
res = super()._generate_asset_links_cache(
2015
bundle,
2116
css=css,
2217
js=js,
2318
assets_params=assets_params,
2419
rtl=rtl,
20+
autoprefix=autoprefix,
2521
)
2622
if bundle == "web_company_color.company_color_assets":
2723
asset = AssetsBundleCompanyColor(
@@ -38,6 +34,7 @@ def _generate_asset_links(
3834
debug_assets=False,
3935
assets_params=None,
4036
rtl=False,
37+
autoprefix=False,
4138
):
4239
res = super()._generate_asset_links(
4340
bundle,
@@ -46,6 +43,7 @@ def _generate_asset_links(
4643
debug_assets=debug_assets,
4744
assets_params=assets_params,
4845
rtl=rtl,
46+
autoprefix=autoprefix,
4947
)
5048
if bundle == "web_company_color.company_color_assets":
5149
asset = AssetsBundleCompanyColor(
@@ -69,6 +67,7 @@ def _get_asset_nodes(
6967
defer_load=False,
7068
lazy_load=False,
7169
media=None,
70+
autoprefix=False,
7271
):
7372
res = super()._get_asset_nodes(
7473
bundle,
@@ -78,6 +77,7 @@ def _get_asset_nodes(
7877
defer_load=defer_load,
7978
lazy_load=lazy_load,
8079
media=media,
80+
autoprefix=autoprefix,
8181
)
8282
for tag, attributes in res:
8383
if tag == "link" and attributes.get("href", "").startswith(

web_company_color/models/res_company.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,7 @@ class ResCompany(models.Model):
115115
background-color: %(color_navbar_bg_hover)s !important;
116116
}
117117
}
118-
.o_menu_systray button,
119-
.o_navbar_breadcrumbs,
120-
.o_main_navbar button,
121-
.o_menu_toggle {
118+
.o_menu_systray button{
122119
color: %(color_navbar_text)s !important;
123120
&:hover, &:focus, &:active, &:focus:active {
124121
background-color: %(color_navbar_bg_hover)s !important;

web_company_color/readme/CONTRIBUTORS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
- Jairo Llopis
99
- Alexandre Díaz
1010
- Carlos Roca
11+
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)
12+
- Bhavesh Heliconia

web_company_color/static/description/index.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,9 @@ <h1>Web Company Color</h1>
372372
!! This file is generated by oca-gen-addon-readme !!
373373
!! changes will be overwritten. !!
374374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375-
!! source digest: sha256:75f2396aade33370837fa8dc343dfb818e4b777b8115331fed547449727181f5
375+
!! source digest: sha256:622d249810675797d351ceaaa800f9df89d92067ce131c14087b0b92fbf78283
376376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377-
<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/license-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>
377+
<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/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/web/tree/19.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-19-0/web-19-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=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378378
<p>This module change navbar colors based in the company logo colors.</p>
379379
<p><strong>Table of contents</strong></p>
380380
<div class="contents local topic" id="contents">
@@ -406,7 +406,7 @@ <h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
406406
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/web/issues">GitHub Issues</a>.
407407
In case of trouble, please check there if your issue has already been reported.
408408
If you spotted it first, help us to smash it by providing a detailed and welcomed
409-
<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>
409+
<a class="reference external" href="https://github.com/OCA/web/issues/new?body=module:%20web_company_color%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
410410
<p>Do not contact contributors directly about support or help with technical issues.</p>
411411
</div>
412412
<div class="section" id="credits">
@@ -432,6 +432,10 @@ <h3><a class="toc-backref" href="#toc-entry-6">Contributors</a></h3>
432432
<li>Carlos Roca</li>
433433
</ul>
434434
</li>
435+
<li><a class="reference external" href="https://www.heliconia.io">Heliconia Solutions Pvt. Ltd.</a><ul>
436+
<li>Bhavesh Heliconia</li>
437+
</ul>
438+
</li>
435439
</ul>
436440
</div>
437441
<div class="section" id="maintainers">
@@ -443,7 +447,7 @@ <h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
443447
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
444448
mission is to support the collaborative development of Odoo features and
445449
promote its widespread use.</p>
446-
<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>
450+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/web/tree/19.0/web_company_color">OCA/web</a> project on GitHub.</p>
447451
<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>
448452
</div>
449453
</div>

0 commit comments

Comments
 (0)