Skip to content

Commit c972f6b

Browse files
manuelregidorBhaveshHeliconia
authored andcommitted
[MIG]web_widget_image_download: Migration to 17.0
1 parent 563cccd commit c972f6b

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

web_widget_image_download/README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Web Widget - Image Download
77
!! This file is generated by oca-gen-addon-readme !!
88
!! changes will be overwritten. !!
99
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10-
!! source digest: sha256:fbbaac2dd53338854af6551564ac3c565458b7a3a430c38d5a5d593e54332607
10+
!! source digest: sha256:2369dd057fe3f7fa3409c5e3bf22611c67217fcf8d26755aa55f9d205ac1cdd8
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png

web_widget_image_download/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Web Widget - Image Download",
55
"summary": "Allows to download any image from its widget",
6-
"version": "16.0.1.0.0",
6+
"version": "17.0.1.0.0",
77
"category": "web",
88
"website": "https://github.com/OCA/web",
99
"author": "Tecnativa, Odoo Community Association (OCA), Kaushal Prajapati",

web_widget_image_download/i18n/web_widget_image_download.pot

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 16.0\n"
7+
"Project-Id-Version: Odoo Server 17.0\n"
88
"Report-Msgid-Bugs-To: \n"
99
"Last-Translator: \n"
1010
"Language-Team: \n"

web_widget_image_download/static/description/index.html

+8-5
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88

99
/*
1010
:Author: David Goodger (goodger@python.org)
11-
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1212
:Copyright: This stylesheet has been placed in the public domain.
1313
1414
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1516
1617
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1718
customize this style sheet.
@@ -274,7 +275,7 @@
274275
margin-left: 2em ;
275276
margin-right: 2em }
276277

277-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
278279
pre.code, code { background-color: #eeeeee }
279280
pre.code .comment, code .comment { color: #5C6576 }
280281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -300,7 +301,7 @@
300301
span.pre {
301302
white-space: pre }
302303

303-
span.problematic {
304+
span.problematic, pre.problematic {
304305
color: red }
305306

306307
span.section-subtitle {
@@ -366,7 +367,7 @@ <h1 class="title">Web Widget - Image Download</h1>
366367
!! This file is generated by oca-gen-addon-readme !!
367368
!! changes will be overwritten. !!
368369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369-
!! source digest: sha256:fbbaac2dd53338854af6551564ac3c565458b7a3a430c38d5a5d593e54332607
370+
!! source digest: sha256:2369dd057fe3f7fa3409c5e3bf22611c67217fcf8d26755aa55f9d205ac1cdd8
370371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371372
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/web/tree/17.0/web_widget_image_download"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_widget_image_download"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/web&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372373
<p>This module was written to extend the functionality of the image widget
@@ -430,7 +431,9 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
430431
<div class="section" id="maintainers">
431432
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
432433
<p>This module is maintained by the OCA.</p>
433-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
434+
<a class="reference external image-reference" href="https://odoo-community.org">
435+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
436+
</a>
434437
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
435438
mission is to support the collaborative development of Odoo features and
436439
promote its widespread use.</p>

web_widget_image_download/static/src/components/image_field.esm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import {patch} from "@web/core/utils/patch";
99
import {ImageField} from "@web/views/fields/image/image_field";
1010

11-
patch(ImageField.prototype, "web_widget_image_download", {
11+
patch(ImageField.prototype, {
1212
download() {
1313
const downloadLink = document.createElement("a");
1414
downloadLink.setAttribute("href", this.getUrl(this.props.name));

web_widget_image_download/static/src/xml/web_widget_image_download.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
t-name="web_widget_image_download.ImageField"
77
t-inherit="web.ImageField"
88
t-inherit-mode="extension"
9-
owl="1"
109
>
1110
<xpath expr="//FileUploader/../.." position="after">
1211
<div
@@ -15,7 +14,7 @@
1514
t-att-style="sizeStyle"
1615
>
1716
<button
18-
t-if="props.value and state.isValid"
17+
t-if="props.record.data[props.name] and state.isValid"
1918
class="o_form_binary_file_download btn btn-light border-0 rounded-circle m-1 p-1"
2019
data-tooltip="Download"
2120
aria-label="Download"

0 commit comments

Comments
 (0)