diff --git a/mail_preview_audio/README.rst b/mail_preview_audio/README.rst index d372a296f..5c702bed6 100644 --- a/mail_preview_audio/README.rst +++ b/mail_preview_audio/README.rst @@ -14,13 +14,13 @@ Preview audio files :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github - :target: https://github.com/OCA/social/tree/13.0/mail_preview_audio + :target: https://github.com/OCA/social/tree/14.0/mail_preview_audio :alt: OCA/social .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_preview_audio + :target: https://translation.odoo-community.org/projects/social-14-0/social-14-0-mail_preview_audio :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/205/13.0 + :target: https://runbot.odoo-community.org/runbot/205/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -38,7 +38,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. @@ -68,6 +68,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/social `_ project on GitHub. +This module is part of the `OCA/social `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mail_preview_audio/__manifest__.py b/mail_preview_audio/__manifest__.py index f46034889..33bc92766 100644 --- a/mail_preview_audio/__manifest__.py +++ b/mail_preview_audio/__manifest__.py @@ -5,7 +5,7 @@ "name": "Preview audio files", "summary": """ Allow to preview audio files""", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "license": "AGPL-3", "author": "Creu Blanca,Odoo Community Association (OCA)", "website": "https://github.com/OCA/social", diff --git a/mail_preview_audio/i18n/mail_preview_audio.pot b/mail_preview_audio/i18n/mail_preview_audio.pot index 62aa8491d..26d31c6a0 100644 --- a/mail_preview_audio/i18n/mail_preview_audio.pot +++ b/mail_preview_audio/i18n/mail_preview_audio.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -16,6 +16,7 @@ msgstr "" #. module: mail_preview_audio #. openerp-web #: code:addons/mail_preview_audio/static/src/xml/preview.xml:0 +#: code:addons/mail_preview_audio/static/src/xml/preview.xml:0 #, python-format msgid "Audio" msgstr "" diff --git a/mail_preview_audio/static/description/index.html b/mail_preview_audio/static/description/index.html index 0e448c8e7..92f4eff23 100644 --- a/mail_preview_audio/static/description/index.html +++ b/mail_preview_audio/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/social Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/social Translate me on Weblate Try me on Runbot

This module allows to preview audio files.

Table of contents

@@ -386,7 +386,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.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -410,7 +410,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/social project on GitHub.

+

This module is part of the OCA/social project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/mail_preview_audio/static/src/js/preview.js b/mail_preview_audio/static/src/js/preview.js index 4bcd85753..fdae4d47e 100644 --- a/mail_preview_audio/static/src/js/preview.js +++ b/mail_preview_audio/static/src/js/preview.js @@ -11,10 +11,8 @@ odoo.define("audio_file.preview", function (require) { DocumentViewer.include({ _checkAttachment: function (attachment) { - if ( - attachment.type !== 'url' && attachment.mimetype.match("audio") - ) { - attachment.type = 'audio'; + if (attachment.type !== "url" && attachment.mimetype.match("audio")) { + attachment.type = "audio"; attachment.source_url = this._getImageUrl(attachment); return true; } @@ -22,8 +20,7 @@ odoo.define("audio_file.preview", function (require) { }, _hasPreview: function (type) { var result = this._super.apply(this, arguments); - return result || type === 'audio'; + return result || type === "audio"; }, }); - }); diff --git a/mail_preview_audio/static/src/xml/preview.xml b/mail_preview_audio/static/src/xml/preview.xml index 2732c6092..0922964e1 100644 --- a/mail_preview_audio/static/src/xml/preview.xml +++ b/mail_preview_audio/static/src/xml/preview.xml @@ -1,14 +1,25 @@ - + - + - diff --git a/mail_preview_audio/template/assets.xml b/mail_preview_audio/template/assets.xml index 74b87a200..d89577bcd 100644 --- a/mail_preview_audio/template/assets.xml +++ b/mail_preview_audio/template/assets.xml @@ -8,7 +8,10 @@