diff --git a/fs_image/README.rst b/fs_image/README.rst index 5e63a11bc3..8937e4e069 100644 --- a/fs_image/README.rst +++ b/fs_image/README.rst @@ -239,6 +239,7 @@ Contributors ------------ - Laurent Mignon +- Nguyen Minh Chien Maintainers ----------- diff --git a/fs_image/__manifest__.py b/fs_image/__manifest__.py index 58e3b05d41..31377443b7 100644 --- a/fs_image/__manifest__.py +++ b/fs_image/__manifest__.py @@ -5,11 +5,11 @@ "name": "Fs Image", "summary": """ Field to store images into filesystem storages""", - "version": "16.0.1.0.3", + "version": "17.0.1.0.0", "license": "AGPL-3", "author": "ACSONE SA/NV,Odoo Community Association (OCA)", "website": "https://github.com/OCA/storage", - "depends": ["fs_file"], + "depends": ["fs_file", "web"], "data": [], "demo": [], "maintainers": ["lmignon"], diff --git a/fs_image/fields.py b/fs_image/fields.py index 9d50e2691a..fe1b813edd 100644 --- a/fs_image/fields.py +++ b/fs_image/fields.py @@ -202,7 +202,7 @@ def _set_image_process_mode(self): finally: self._image_process_mode = False - def _process_related(self, value: FSImageValue): + def _process_related(self, value: FSImageValue, env): """Override to resize the related value before saving it on self.""" if not value: return None @@ -210,7 +210,7 @@ def _process_related(self, value: FSImageValue): # no need to process images for computed fields, or related fields # without max_width/max_height return value - value = super()._process_related(value) + value = super()._process_related(value, env) new_value = BytesIO(self._image_process(value)) return FSImageValue(value=new_value, alt_text=value.alt_text, name=value.name) diff --git a/fs_image/readme/CONTRIBUTORS.md b/fs_image/readme/CONTRIBUTORS.md index f2af9193ce..da20decb6f 100644 --- a/fs_image/readme/CONTRIBUTORS.md +++ b/fs_image/readme/CONTRIBUTORS.md @@ -1 +1,2 @@ - Laurent Mignon \<\> +- Nguyen Minh Chien \<\> diff --git a/fs_image/static/description/index.html b/fs_image/static/description/index.html index ec1bb759fb..8c622717bf 100644 --- a/fs_image/static/description/index.html +++ b/fs_image/static/description/index.html @@ -1,4 +1,3 @@ - @@ -582,6 +581,7 @@

Authors

Contributors

diff --git a/fs_image/static/src/views/dialogs/alttext_dialog.xml b/fs_image/static/src/views/dialogs/alttext_dialog.xml index afdd22c838..ecdc476de3 100644 --- a/fs_image/static/src/views/dialogs/alttext_dialog.xml +++ b/fs_image/static/src/views/dialogs/alttext_dialog.xml @@ -1,6 +1,6 @@ - +
@@ -16,7 +16,7 @@ />
- +