Skip to content

Commit bcb0b99

Browse files
committed
[MIG] shopinvader_search_engine_update_product_brand: Migration to 18.0
1 parent a73df31 commit bcb0b99

7 files changed

Lines changed: 35 additions & 34 deletions

File tree

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ exclude: |
1616
^shopinvader_search_engine_update/|
1717
^shopinvader_search_engine_update_image/|
1818
^shopinvader_search_engine_update_pricelist/|
19-
^shopinvader_search_engine_update_product_brand/|
2019
^shopinvader_search_engine_update_product_brand_image/|
2120
^shopinvader_search_engine_update_product_brand_tag/|
2221
^shopinvader_search_engine_update_product_media/|

requirements.txt

Whitespace-only changes.

shopinvader_search_engine_update_product_brand/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
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
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
21+
:alt: shopinvader/odoo-shopinvader-search-engine
2222

2323
|badge1| |badge2| |badge3|
2424

@@ -48,10 +48,10 @@ changes applied into the search engine as soon as possible.
4848
Bug Tracker
4949
===========
5050

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

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

@@ -66,11 +66,11 @@ Authors
6666
Contributors
6767
------------
6868

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

7171
Maintainers
7272
-----------
7373

74-
This module is part of the `shopinvader/odoo-shopinvader <https://github.com/shopinvader/odoo-shopinvader/tree/16.0/shopinvader_search_engine_update_product_brand>`_ project on GitHub.
74+
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>`_ project on GitHub.
7575

7676
You are welcome to contribute.

shopinvader_search_engine_update_product_brand/__manifest__.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
{
55
"name": "Shopinvader Search Engine Update Product Brand",
6-
"summary": """
7-
Shopinvader: Mark brand and product bindings to export on product brand update""",
8-
"version": "16.0.1.0.0",
6+
"summary": "Shopinvader: Mark brand and product bindings to export "
7+
"on product 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",
@@ -14,7 +14,6 @@
1414
"shopinvader_search_engine_product_brand",
1515
],
1616
"data": [],
17-
"demo": [],
1817
"development_status": "Alpha",
19-
"installable": False,
18+
"installable": True,
2019
}
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/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</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:e97b63edd2fadff4ed47b94f3e3767342db03cdf41cd671300d6b516bc184d82
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"><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"><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</tt> modules to mark the
@@ -402,10 +402,10 @@ <h1><a class="toc-backref" href="#toc-entry-1">Use Cases / Context</a></h1>
402402
</div>
403403
<div class="section" id="bug-tracker">
404404
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
405-
<p>Bugs are tracked on <a class="reference external" href="https://github.com/shopinvader/odoo-shopinvader/issues">GitHub Issues</a>.
405+
<p>Bugs are tracked on <a class="reference external" href="https://github.com/shopinvader/odoo-shopinvader-search-engine/issues">GitHub Issues</a>.
406406
In case of trouble, please check there if your issue has already been reported.
407407
If you spotted it first, help us to smash it by providing a detailed and welcomed
408-
<a class="reference external" href="https://github.com/shopinvader/odoo-shopinvader/issues/new?body=module:%20shopinvader_search_engine_update_product_brand%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
408+
<a class="reference external" href="https://github.com/shopinvader/odoo-shopinvader-search-engine/issues/new?body=module:%20shopinvader_search_engine_update_product_brand%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
409409
<p>Do not contact contributors directly about support or help with technical issues.</p>
410410
</div>
411411
<div class="section" id="credits">
@@ -424,7 +424,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
424424
</div>
425425
<div class="section" id="maintainers">
426426
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
427-
<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">shopinvader/odoo-shopinvader</a> project on GitHub.</p>
427+
<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">shopinvader/odoo-shopinvader-search-engine</a> project on GitHub.</p>
428428
<p>You are welcome to contribute.</p>
429429
</div>
430430
</div>

shopinvader_search_engine_update_product_brand/tests/common.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77

88

99
class TestProductBrandUpdateBase(TestProductBindingUpdateBase):
10-
@classmethod
11-
def setUpClass(cls):
12-
super().setUpClass()
13-
cls.brand = cls.env["product.brand"].create({"name": "brand"})
14-
cls.brand_index = cls.env["se.index"].create(
10+
def setup_records(self, backend=None):
11+
rv = super().setup_records(backend=backend)
12+
self.brand = self.env["product.brand"].create({"name": "brand"})
13+
self.brand_index = self.env["se.index"].create(
1514
{
1615
"name": "brand",
17-
"backend_id": cls.backend.id,
18-
"model_id": cls.env.ref("product_brand.model_product_brand").id,
16+
"backend_id": self.backend.id,
17+
"model_id": self.env.ref("product_brand.model_product_brand").id,
1918
"serializer_type": "shopinvader_brand_exports",
2019
}
2120
)
22-
cls.product.product_brand_id = cls.brand
23-
cls.brand_binding = cls.brand._add_to_index(cls.brand_index)
24-
cls.brand_binding.state = "done"
25-
cls.new_brand = cls.env["product.brand"].create({"name": "new brand"})
26-
cls.new_brand_binding = cls.new_brand._add_to_index(cls.brand_index)
27-
cls.new_brand_binding.state = "done"
21+
self.product.product_brand_id = self.brand
22+
self.brand_binding = self.brand._add_to_index(self.brand_index)
23+
self.brand_binding.state = "done"
24+
self.new_brand = self.env["product.brand"].create({"name": "new brand"})
25+
self.new_brand_binding = self.new_brand._add_to_index(self.brand_index)
26+
self.new_brand_binding.state = "done"
27+
return rv

0 commit comments

Comments
 (0)