Skip to content

Commit e682270

Browse files
committed
[MIG] shopinvader_search_engine_update_product_brand_image: Migration to
18.0
1 parent 2b61236 commit e682270

7 files changed

Lines changed: 32 additions & 32 deletions

File tree

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ exclude: |
1717
^shopinvader_search_engine_update_image/|
1818
^shopinvader_search_engine_update_pricelist/|
1919
^shopinvader_search_engine_update_product_brand/|
20-
^shopinvader_search_engine_update_product_brand_image/|
2120
^shopinvader_search_engine_update_product_brand_tag/|
2221
^shopinvader_search_engine_update_product_media/|
2322
^shopinvader_search_engine_update_product_template_multi_link/|

requirements.txt

Whitespace-only changes.

shopinvader_search_engine_update_product_brand_image/README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ Shopinvader Search Engine Update Product Brand Image
1616
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
19-
.. |badge3| image:: https://img.shields.io/badge/github-shopinvader%2Fodoo--shopinvader-lightgray.png?logo=github
20-
:target: https://github.com/shopinvader/odoo-shopinvader/tree/16.0/shopinvader_search_engine_update_product_brand_image
21-
:alt: shopinvader/odoo-shopinvader
19+
.. |badge3| image:: https://img.shields.io/badge/github-shopinvader%2Fodoo--shopinvader--search--engine-lightgray.png?logo=github
20+
:target: https://github.com/shopinvader/odoo-shopinvader-search-engine/tree/18.0/shopinvader_search_engine_update_product_brand_image
21+
:alt: shopinvader/odoo-shopinvader-search-engine
2222

2323
|badge1| |badge2| |badge3|
2424

@@ -49,10 +49,10 @@ search engine as soon as possible.
4949
Bug Tracker
5050
===========
5151

52-
Bugs are tracked on `GitHub Issues <https://github.com/shopinvader/odoo-shopinvader/issues>`_.
52+
Bugs are tracked on `GitHub Issues <https://github.com/shopinvader/odoo-shopinvader-search-engine/issues>`_.
5353
In case of trouble, please check there if your issue has already been reported.
5454
If you spotted it first, help us to smash it by providing a detailed and welcomed
55-
`feedback <https://github.com/shopinvader/odoo-shopinvader/issues/new?body=module:%20shopinvader_search_engine_update_product_brand_image%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
55+
`feedback <https://github.com/shopinvader/odoo-shopinvader-search-engine/issues/new?body=module:%20shopinvader_search_engine_update_product_brand_image%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5656

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

@@ -67,11 +67,11 @@ Authors
6767
Contributors
6868
------------
6969

70-
- Laurent Mignon laurent.mignon@acsone.eu (https://www.acsone.eu)
70+
- Laurent Mignon laurent.mignon@acsone.eu (https://www.acsone.eu)
7171

7272
Maintainers
7373
-----------
7474

75-
This module is part of the `shopinvader/odoo-shopinvader <https://github.com/shopinvader/odoo-shopinvader/tree/16.0/shopinvader_search_engine_update_product_brand_image>`_ project on GitHub.
75+
This module is part of the `shopinvader/odoo-shopinvader-search-engine <https://github.com/shopinvader/odoo-shopinvader-search-engine/tree/18.0/shopinvader_search_engine_update_product_brand_image>`_ project on GitHub.
7676

7777
You are welcome to contribute.

shopinvader_search_engine_update_product_brand_image/__manifest__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33

44
{
55
"name": "Shopinvader Search Engine Update Product Brand Image",
6-
"summary": """
7-
Mark brand and product bindings to export on product image brand update""",
8-
"version": "16.0.1.0.0",
6+
"summary": "Mark brand and product bindings to export on "
7+
"product image brand update",
8+
"version": "18.0.1.0.0",
99
"license": "AGPL-3",
1010
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
1111
"website": "https://github.com/shopinvader/odoo-shopinvader-search-engine",
1212
"depends": [
13-
"shopinvader_search_engine_update",
1413
"shopinvader_search_engine_product_brand_image",
14+
"shopinvader_search_engine_update",
15+
"shopinvader_search_engine_update_product_brand",
1516
],
1617
"data": [],
17-
"demo": [],
1818
"development_status": "Alpha",
19-
"installable": False,
19+
"installable": True,
2020
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"

shopinvader_search_engine_update_product_brand_image/static/description/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="utf-8"?>
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
32
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
43
<head>
@@ -9,10 +8,11 @@
98

109
/*
1110
:Author: David Goodger (goodger@python.org)
12-
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1312
:Copyright: This stylesheet has been placed in the public domain.
1413
1514
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1616
1717
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1818
customize this style sheet.
@@ -275,7 +275,7 @@
275275
margin-left: 2em ;
276276
margin-right: 2em }
277277

278-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
279279
pre.code, code { background-color: #eeeeee }
280280
pre.code .comment, code .comment { color: #5C6576 }
281281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +301,7 @@
301301
span.pre {
302302
white-space: pre }
303303

304-
span.problematic {
304+
span.problematic, pre.problematic {
305305
color: red }
306306

307307
span.section-subtitle {
@@ -369,7 +369,7 @@ <h1 class="title">Shopinvader Search Engine Update Product Brand Image</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:f1cf4b809267c056e7c6793e1df307333bf7ef333c7a7c77e482958a446bed40
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.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/shopinvader/odoo-shopinvader/tree/16.0/shopinvader_search_engine_update_product_brand_image"><img alt="shopinvader/odoo-shopinvader" src="https://img.shields.io/badge/github-shopinvader%2Fodoo--shopinvader-lightgray.png?logo=github" /></a></p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.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/shopinvader/odoo-shopinvader-search-engine/tree/18.0/shopinvader_search_engine_update_product_brand_image"><img alt="shopinvader/odoo-shopinvader-search-engine" src="https://img.shields.io/badge/github-shopinvader%2Fodoo--shopinvader--search--engine-lightgray.png?logo=github" /></a></p>
373373
<p>This module extends the functionality of the
374374
<tt class="docutils literal">shopinvader_search_engine_update</tt> and
375375
<tt class="docutils literal">shopinvader_search_engine_product_brand_image</tt> modules to mark the
@@ -403,10 +403,10 @@ <h1><a class="toc-backref" href="#toc-entry-1">Use Cases / Context</a></h1>
403403
</div>
404404
<div class="section" id="bug-tracker">
405405
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
406-
<p>Bugs are tracked on <a class="reference external" href="https://github.com/shopinvader/odoo-shopinvader/issues">GitHub Issues</a>.
406+
<p>Bugs are tracked on <a class="reference external" href="https://github.com/shopinvader/odoo-shopinvader-search-engine/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/shopinvader/odoo-shopinvader/issues/new?body=module:%20shopinvader_search_engine_update_product_brand_image%0Aversion:%2016.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/shopinvader/odoo-shopinvader-search-engine/issues/new?body=module:%20shopinvader_search_engine_update_product_brand_image%0Aversion:%2018.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">
@@ -425,7 +425,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
425425
</div>
426426
<div class="section" id="maintainers">
427427
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
428-
<p>This module is part of the <a class="reference external" href="https://github.com/shopinvader/odoo-shopinvader/tree/16.0/shopinvader_search_engine_update_product_brand_image">shopinvader/odoo-shopinvader</a> project on GitHub.</p>
428+
<p>This module is part of the <a class="reference external" href="https://github.com/shopinvader/odoo-shopinvader-search-engine/tree/18.0/shopinvader_search_engine_update_product_brand_image">shopinvader/odoo-shopinvader-search-engine</a> project on GitHub.</p>
429429
<p>You are welcome to contribute.</p>
430430
</div>
431431
</div>

shopinvader_search_engine_update_product_brand_image/tests/test_update.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,23 @@
22
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
33
import base64
44

5-
from odoo.addons.shopinvader_search_engine.tests.common import TestProductBindingMixin
65
from odoo.addons.shopinvader_search_engine_product_brand_image.tests.common import (
76
ProductBrandImageCase,
87
)
98

109

11-
class TestUpdate(ProductBrandImageCase, TestProductBindingMixin):
12-
@classmethod
13-
def setUpClass(cls):
14-
super().setUpClass()
15-
TestProductBindingMixin.setup_records(cls)
16-
cls.product.product_brand_id = cls.brand
17-
cls.product_binding.state = "done"
18-
cls.brand_binding.state = "done"
19-
cls.new_tag = cls.env["image.tag"].create(
10+
class TestUpdate(ProductBrandImageCase):
11+
def setup_records(self, backend=None):
12+
rv = super().setup_records(backend=backend)
13+
self.product.product_brand_id = self.brand
14+
self.product_binding.state = "done"
15+
self.brand_binding.state = "done"
16+
self.new_tag = self.env["image.tag"].create(
2017
{
2118
"name": "new_tag",
2219
}
2320
)
21+
return rv
2422

2523
def test_unlink_image(self):
2624
self.brand.image_ids.unlink()

0 commit comments

Comments
 (0)