From 61f90fbd4582edac3c2ea47b8414d98f76ff8520 Mon Sep 17 00:00:00 2001 From: Jaime Arroyo Date: Mon, 28 Sep 2020 12:00:14 +0200 Subject: [PATCH] [IMP] mail_preview_audio: black, isort, prettier --- mail_preview_audio/__manifest__.py | 22 +++++++++------------ mail_preview_audio/static/src/js/preview.js | 11 +++++------ 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/mail_preview_audio/__manifest__.py b/mail_preview_audio/__manifest__.py index ab232300b..f46034889 100644 --- a/mail_preview_audio/__manifest__.py +++ b/mail_preview_audio/__manifest__.py @@ -2,18 +2,14 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { - 'name': 'Preview audio files', - 'summary': """ + "name": "Preview audio files", + "summary": """ Allow to preview audio files""", - 'version': '12.0.1.0.0', - 'license': 'AGPL-3', - 'author': 'Creu Blanca,Odoo Community Association (OCA)', - 'website': 'https://github.com/OCA/social', - 'depends': [ - "mail_preview_base" - ], - 'data': [ - "template/assets.xml" - ], - 'qweb': ['static/src/xml/preview.xml'], + "version": "13.0.1.0.0", + "license": "AGPL-3", + "author": "Creu Blanca,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/social", + "depends": ["mail_preview_base"], + "data": ["template/assets.xml"], + "qweb": ["static/src/xml/preview.xml"], } diff --git a/mail_preview_audio/static/src/js/preview.js b/mail_preview_audio/static/src/js/preview.js index 334c2ceca..c7350e3ec 100644 --- a/mail_preview_audio/static/src/js/preview.js +++ b/mail_preview_audio/static/src/js/preview.js @@ -3,7 +3,7 @@ License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). **********************************************************************************/ -odoo.define("audio_file.preview", function(require) { +odoo.define("audio_file.preview", function (require) { "use strict"; var DocumentViewer = require("mail.DocumentViewer"); @@ -11,12 +11,11 @@ odoo.define("audio_file.preview", function(require) { DocumentViewer.include({ _checkAttachment: function (attachment) { if ( - attachment.type !== 'url' - && attachment.mimetype.match("audio") + attachment.type !== 'url' && attachment.mimetype.match("audio") ) { - attachment.type = 'audio'; - attachment.source_url = this._getImageUrl(attachment); - return true; + attachment.type = 'audio'; + attachment.source_url = this._getImageUrl(attachment); + return true; } return this._super.apply(this, arguments); },