@@ -7,7 +7,7 @@ Multiple images base
7
7
!! This file is generated by oca-gen-addon-readme !!
8
8
!! changes will be overwritten. !!
9
9
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:a1ba1544d191e5da03615b374ee3752550216bfb5697daa3b4d643cd5083fb51
10
+ !! source digest: sha256:60ac00ce7f687070232e6497bd0c97a20de9bcf45f9263960a3529ab63865636
11
11
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
13
13
.. |badge1 | image :: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -17,13 +17,13 @@ Multiple images base
17
17
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18
18
:alt: License: AGPL-3
19
19
.. |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
21
21
:alt: OCA/server-tools
22
22
.. |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
24
24
:alt: Translate me on Weblate
25
25
.. |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
27
27
:alt: Try me on Runboat
28
28
29
29
|badge1 | |badge2 | |badge3 | |badge4 | |badge5 |
@@ -70,7 +70,7 @@ To develop a module based on this one:
70
70
71
71
# If you need this, you will need ``pre_init_hook_for_submodules`` and
72
72
``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)
74
74
75
75
* Somewhere in the owner view, add::
76
76
@@ -85,25 +85,18 @@ To develop a module based on this one:
85
85
86
86
* If the model you are extending already had an image field, and you want to
87
87
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
89
89
`~.hooks.uninstall_hook_for_submodules `, like the
90
90
``product_multi_image `` module does::
91
91
92
92
try:
93
93
from odoo.addons.base_multi_image.hooks import (
94
- pre_init_hook_for_submodules,
95
94
uninstall_hook_for_submodules,
96
95
)
97
96
except ImportError:
98
97
pass
99
98
100
99
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
-
107
100
def uninstall_hook(cr, registry):
108
101
"""Remove multi images for models that no longer use them."""
109
102
uninstall_hook_for_submodules(cr, registry, "product.template")
@@ -127,7 +120,7 @@ Bug Tracker
127
120
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues >`_.
128
121
In case of trouble, please check there if your issue has already been reported.
129
122
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** >`_.
131
124
132
125
Do not contact contributors directly about support or help with technical issues.
133
126
@@ -142,6 +135,7 @@ Authors
142
135
* S.L.
143
136
* Sodexis
144
137
* LasLabs
138
+ * OpenFire
145
139
146
140
Contributors
147
141
~~~~~~~~~~~~
@@ -177,6 +171,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
177
171
mission is to support the collaborative development of Odoo features and
178
172
promote its widespread use.
179
173
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.
181
175
182
176
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
0 commit comments