From bae4b3417b0d50b034bb422267688ae9a157b9d5 Mon Sep 17 00:00:00 2001
From: Bhavesh Heliconia
Date: Fri, 3 Jan 2025 17:29:11 +0530
Subject: [PATCH] [MIG] web_widget_image_download: Migration to 18.0
---
web_widget_image_download/README.rst | 29 ++++++++++---------
web_widget_image_download/__manifest__.py | 2 +-
.../readme/CONTRIBUTORS.md | 1 +
.../static/description/index.html | 7 +++--
.../static/src/components/image_field.esm.js | 1 +
.../src/xml/web_widget_image_download.xml | 7 ++---
6 files changed, 25 insertions(+), 22 deletions(-)
diff --git a/web_widget_image_download/README.rst b/web_widget_image_download/README.rst
index d31a58e1db80..e5e5c70e0938 100644
--- a/web_widget_image_download/README.rst
+++ b/web_widget_image_download/README.rst
@@ -17,13 +17,13 @@ Web Widget - Image Download
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
- :target: https://github.com/OCA/web/tree/17.0/web_widget_image_download
+ :target: https://github.com/OCA/web/tree/18.0/web_widget_image_download
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_widget_image_download
+ :target: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_widget_image_download
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
- :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=17.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -52,7 +52,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -68,17 +68,18 @@ Authors
Contributors
------------
-- `Tecnativa `__:
+- `Tecnativa `__:
- - Flavio Corpa
- - Jairo Llopis
- - Pedro M. Baeza
- - Ernesto Tejeda
- - Alexandre Díaz
+ - Flavio Corpa
+ - Jairo Llopis
+ - Pedro M. Baeza
+ - Ernesto Tejeda
+ - Alexandre Díaz
-- Kaushal Prajapati
-- Peerapong Supasompob
-- Manuel Regidor
+- Kaushal Prajapati
+- Peerapong Supasompob
+- Manuel Regidor
+- ``Heliconia Solutions Pvt. Ltd. ``\ \_
Maintainers
-----------
@@ -93,6 +94,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-This module is part of the `OCA/web `_ project on GitHub.
+This module is part of the `OCA/web `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/web_widget_image_download/__manifest__.py b/web_widget_image_download/__manifest__.py
index 666128f55824..2db1c6b66622 100644
--- a/web_widget_image_download/__manifest__.py
+++ b/web_widget_image_download/__manifest__.py
@@ -3,7 +3,7 @@
{
"name": "Web Widget - Image Download",
"summary": "Allows to download any image from its widget",
- "version": "17.0.1.0.0",
+ "version": "18.0.1.0.0",
"category": "web",
"website": "https://github.com/OCA/web",
"author": "Tecnativa, Odoo Community Association (OCA), Kaushal Prajapati",
diff --git a/web_widget_image_download/readme/CONTRIBUTORS.md b/web_widget_image_download/readme/CONTRIBUTORS.md
index f69c80438efe..dcf683d8d287 100644
--- a/web_widget_image_download/readme/CONTRIBUTORS.md
+++ b/web_widget_image_download/readme/CONTRIBUTORS.md
@@ -7,3 +7,4 @@
- Kaushal Prajapati \<\>
- Peerapong Supasompob \<\>
- Manuel Regidor \<\>
+- `Heliconia Solutions Pvt. Ltd. `_
diff --git a/web_widget_image_download/static/description/index.html b/web_widget_image_download/static/description/index.html
index 9f854d8c03f2..c4322a2f0faf 100644
--- a/web_widget_image_download/static/description/index.html
+++ b/web_widget_image_download/static/description/index.html
@@ -369,7 +369,7 @@ Web Widget - Image Download
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:2369dd057fe3f7fa3409c5e3bf22611c67217fcf8d26755aa55f9d205ac1cdd8
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module was written to extend the functionality of the image widget
and allows to download it.
Table of contents
@@ -400,7 +400,7 @@
Bugs are tracked on GitHub Issues .
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-feedback .
+feedback .
Do not contact contributors directly about support or help with technical issues.
@@ -437,7 +438,7 @@
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-
This module is part of the OCA/web project on GitHub.
+
This module is part of the OCA/web project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute .
diff --git a/web_widget_image_download/static/src/components/image_field.esm.js b/web_widget_image_download/static/src/components/image_field.esm.js
index 09ae3889538c..fcb57a4f8cf8 100644
--- a/web_widget_image_download/static/src/components/image_field.esm.js
+++ b/web_widget_image_download/static/src/components/image_field.esm.js
@@ -7,6 +7,7 @@
import {patch} from "@web/core/utils/patch";
import {ImageField} from "@web/views/fields/image/image_field";
+const {document} = globalThis;
patch(ImageField.prototype, {
download() {
diff --git a/web_widget_image_download/static/src/xml/web_widget_image_download.xml b/web_widget_image_download/static/src/xml/web_widget_image_download.xml
index afed5a5559e7..f6220275f235 100644
--- a/web_widget_image_download/static/src/xml/web_widget_image_download.xml
+++ b/web_widget_image_download/static/src/xml/web_widget_image_download.xml
@@ -7,11 +7,10 @@
t-inherit="web.ImageField"
t-inherit-mode="extension"
>
-
+