From 68899330540fab3884b6737d92480a27e76cf5fe Mon Sep 17 00:00:00 2001 From: manu Date: Fri, 2 Aug 2024 08:28:18 +0200 Subject: [PATCH] [MIG]web_widget_image_download: Migration to 17.0 --- web_widget_image_download/__manifest__.py | 2 +- .../static/src/components/image_field.esm.js | 2 +- .../static/src/xml/web_widget_image_download.xml | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/web_widget_image_download/__manifest__.py b/web_widget_image_download/__manifest__.py index dfecfebb3..666128f55 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": "16.0.1.0.0", + "version": "17.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/static/src/components/image_field.esm.js b/web_widget_image_download/static/src/components/image_field.esm.js index c1d0816a7..09ae38895 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 @@ -8,7 +8,7 @@ import {patch} from "@web/core/utils/patch"; import {ImageField} from "@web/views/fields/image/image_field"; -patch(ImageField.prototype, "web_widget_image_download", { +patch(ImageField.prototype, { download() { const downloadLink = document.createElement("a"); downloadLink.setAttribute("href", this.getUrl(this.props.name)); 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 1f030b1b1..afed5a555 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 @@ -6,7 +6,6 @@ t-name="web_widget_image_download.ImageField" t-inherit="web.ImageField" t-inherit-mode="extension" - owl="1" >