From 10509eb3749d512d68703918b5d38deaaf97f16b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adri=C3=A0=20Gil=20Sorribes?=
Date: Wed, 18 Mar 2020 15:32:30 +0100
Subject: [PATCH] [FIX] prevent drop when no record id is found
[UPD] Update web_drop_target.pot
[UPD] README.rst
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: web-13.0/web-13.0-web_drop_target
Translate-URL: https://translation.odoo-community.org/projects/web-13-0/web-13-0-web_drop_target/
---
web_drop_target/README.rst | 10 +-
web_drop_target/i18n/fr.po | 9 +-
web_drop_target/i18n/web_drop_target.pot | 14 +-
web_drop_target/static/description/index.html | 6 +-
.../static/src/js/web_drop_target.js | 166 ++++++++++--------
.../static/src/less/web_drop_target.less | 6 +-
web_drop_target/static/src/xml/widgets.xml | 12 +-
web_drop_target/views/templates.xml | 23 ++-
8 files changed, 146 insertions(+), 100 deletions(-)
diff --git a/web_drop_target/README.rst b/web_drop_target/README.rst
index 5311ca60e..1227a4daa 100644
--- a/web_drop_target/README.rst
+++ b/web_drop_target/README.rst
@@ -14,13 +14,13 @@ Drop target support
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
- :target: https://github.com/OCA/web/tree/12.0/web_drop_target
+ :target: https://github.com/OCA/web/tree/13.0/web_drop_target
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_drop_target
+ :target: https://translation.odoo-community.org/projects/web-13-0/web-13-0-web_drop_target
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/162/12.0
+ :target: https://runbot.odoo-community.org/runbot/162/13.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -69,7 +69,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 smashing it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -102,6 +102,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_drop_target/i18n/fr.po b/web_drop_target/i18n/fr.po
index 93cb2f33a..af0478085 100644
--- a/web_drop_target/i18n/fr.po
+++ b/web_drop_target/i18n/fr.po
@@ -18,7 +18,14 @@ msgstr ""
#. module: web_drop_target
#. openerp-web
-#: code:addons/web_drop_target/static/src/xml/widgets.xml:11
+#: code:addons/web_drop_target/static/src/xml/widgets.xml:0
#, python-format
msgid "Drop your files here"
msgstr "Déposez les fichiers ici"
+
+#. module: web_drop_target
+#. openerp-web
+#: code:addons/web_drop_target/static/src/xml/widgets.xml:0
+#, python-format
+msgid "Please save the record before dropping a file"
+msgstr ""
diff --git a/web_drop_target/i18n/web_drop_target.pot b/web_drop_target/i18n/web_drop_target.pot
index 66924ca08..905cbabd2 100644
--- a/web_drop_target/i18n/web_drop_target.pot
+++ b/web_drop_target/i18n/web_drop_target.pot
@@ -1,12 +1,12 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
-# * web_drop_target
+# * web_drop_target
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 12.0\n"
+"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
-"Last-Translator: <>\n"
+"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -15,8 +15,14 @@ msgstr ""
#. module: web_drop_target
#. openerp-web
-#: code:addons/web_drop_target/static/src/xml/widgets.xml:11
+#: code:addons/web_drop_target/static/src/xml/widgets.xml:0
#, python-format
msgid "Drop your files here"
msgstr ""
+#. module: web_drop_target
+#. openerp-web
+#: code:addons/web_drop_target/static/src/xml/widgets.xml:0
+#, python-format
+msgid "Please save the record before dropping a file"
+msgstr ""
diff --git a/web_drop_target/static/description/index.html b/web_drop_target/static/description/index.html
index 971f87f53..49080e2d6 100644
--- a/web_drop_target/static/description/index.html
+++ b/web_drop_target/static/description/index.html
@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module extends the functionality of the web client to support dropping local files into the web client.
By default, an attachment will be created when dropping a file on a form.
Further, this module is meant as a base drag&drop module supporting other actions after some file is dropped so that other modules can add more features.
@@ -417,7 +417,7 @@ ul.auto-toc {
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 smashing it by providing a detailed and welcomed
-feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -444,7 +444,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
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.