Skip to content

Commit 42c3340

Browse files
committedAug 19, 2024
[MIG] base_multi_image: Migration to 16.0
Fecha: Fri Apr 11 13:31:40 2023 +0200 Autor: clb_openfire
1 parent 7b729cd commit 42c3340

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+4784
-4868
lines changed
 

‎base_multi_image/README.rst

+9-15
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Multiple images base
77
!! This file is generated by oca-gen-addon-readme !!
88
!! changes will be overwritten. !!
99
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10-
!! source digest: sha256:a1ba1544d191e5da03615b374ee3752550216bfb5697daa3b4d643cd5083fb51
10+
!! source digest: sha256:60ac00ce7f687070232e6497bd0c97a20de9bcf45f9263960a3529ab63865636
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -17,13 +17,13 @@ Multiple images base
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%2Fserver--tools-lightgray.png?logo=github
20-
:target: https://github.com/OCA/server-tools/tree/15.0/base_multi_image
20+
:target: https://github.com/OCA/server-tools/tree/16.0/base_multi_image
2121
:alt: OCA/server-tools
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-base_multi_image
23+
:target: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-base_multi_image
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/server-tools&target_branch=15.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=16.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -70,7 +70,7 @@ To develop a module based on this one:
7070

7171
# If you need this, you will need ``pre_init_hook_for_submodules`` and
7272
``uninstall_hook_for_submodules`` as detailed below.
73-
old_image_field = fields.Binary(related="image_main", store=False)
73+
old_image_field = fields.Binary(related="image_1920", store=False)
7474

7575
* Somewhere in the owner view, add::
7676

@@ -85,25 +85,18 @@ To develop a module based on this one:
8585

8686
* If the model you are extending already had an image field, and you want to
8787
trick Odoo to make those images to multi-image mode, you will need to make
88-
use of the provided `~.hooks.pre_init_hook_for_submodules` and
88+
use of the provided `~.hooks.post_init_hook_for_submodules` and
8989
`~.hooks.uninstall_hook_for_submodules`, like the
9090
``product_multi_image`` module does::
9191

9292
try:
9393
from odoo.addons.base_multi_image.hooks import (
94-
pre_init_hook_for_submodules,
9594
uninstall_hook_for_submodules,
9695
)
9796
except ImportError:
9897
pass
9998

10099

101-
def pre_init_hook(cr):
102-
"""Transform single into multi images."""
103-
pre_init_hook_for_submodules(cr, "product.template", "image")
104-
pre_init_hook_for_submodules(cr, "product.product", "image_variant")
105-
106-
107100
def uninstall_hook(cr, registry):
108101
"""Remove multi images for models that no longer use them."""
109102
uninstall_hook_for_submodules(cr, registry, "product.template")
@@ -127,7 +120,7 @@ Bug Tracker
127120
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
128121
In case of trouble, please check there if your issue has already been reported.
129122
If you spotted it first, help us to smash it by providing a detailed and welcomed
130-
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20base_multi_image%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
123+
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20base_multi_image%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
131124

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

@@ -142,6 +135,7 @@ Authors
142135
* S.L.
143136
* Sodexis
144137
* LasLabs
138+
* OpenFire
145139

146140
Contributors
147141
~~~~~~~~~~~~
@@ -177,6 +171,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
177171
mission is to support the collaborative development of Odoo features and
178172
promote its widespread use.
179173

180-
This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/15.0/base_multi_image>`_ project on GitHub.
174+
This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/16.0/base_multi_image>`_ project on GitHub.
181175

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

‎base_multi_image/__manifest__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
{
88
"name": "Multiple images base",
99
"summary": "Allow multiple images for database objects",
10-
"version": "15.0.1.0.0",
10+
"version": "16.0.1.0.0",
1111
"author": "Tecnativa, "
1212
"Antiun Ingeniería, S.L., Sodexis, "
13-
"LasLabs, "
13+
"LasLabs, OpenFire, "
1414
"Odoo Community Association (OCA)",
1515
"license": "AGPL-3",
1616
"website": "https://github.com/OCA/server-tools",

0 commit comments

Comments
 (0)
Please sign in to comment.