From 8b142d2700b34ada512acbe4e61b83d2ca8b8d40 Mon Sep 17 00:00:00 2001 From: Stephane Mangin Date: Thu, 4 Feb 2021 12:24:09 +0100 Subject: [PATCH] [IMP] web_send_message_popup: black, isort, prettier --- web_send_message_popup/__manifest__.py | 23 ++++++++----------- .../static/src/js/chatter.js | 16 +++++++------ web_send_message_popup/templates/assets.xml | 19 ++++++++++----- 3 files changed, 31 insertions(+), 27 deletions(-) diff --git a/web_send_message_popup/__manifest__.py b/web_send_message_popup/__manifest__.py index 7912ca0ff..e1bb0e05a 100644 --- a/web_send_message_popup/__manifest__.py +++ b/web_send_message_popup/__manifest__.py @@ -1,18 +1,13 @@ # Copyright 2014-2019 Camptocamp SA # License AGPL-3.0 or later (http://gnu.org/licenses/agpl). { - 'name': 'Web Send Message as Popup', - 'version': '12.0.1.0.0', - 'author': "Camptocamp, Odoo Community Association (OCA)", - 'maintainer': 'Camptocamp', - 'license': 'AGPL-3', - 'category': 'Hidden', - 'depends': [ - 'web', - 'mail', - ], - 'website': 'https://github.com/OCA/web', - 'data': [ - 'templates/assets.xml', - ], + "name": "Web Send Message as Popup", + "version": "12.0.1.0.0", + "author": "Camptocamp, Odoo Community Association (OCA)", + "maintainer": "Camptocamp", + "license": "AGPL-3", + "category": "Hidden", + "depends": ["web", "mail",], + "website": "https://github.com/OCA/web", + "data": ["templates/assets.xml",], } diff --git a/web_send_message_popup/static/src/js/chatter.js b/web_send_message_popup/static/src/js/chatter.js index 441da7ce0..adc13d9a3 100644 --- a/web_send_message_popup/static/src/js/chatter.js +++ b/web_send_message_popup/static/src/js/chatter.js @@ -1,17 +1,19 @@ /* Copyright 2019 Camptocamp SA * License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */ -odoo.define('web_send_message_popup.Chatter', function (require) { +odoo.define("web_send_message_popup.Chatter", function(require) { "use strict"; - var Chatter = require('mail.Chatter'); + var Chatter = require("mail.Chatter"); Chatter.include({ - _onOpenComposerMessage: function () { + _onOpenComposerMessage: function() { this._super.apply(this, arguments); - this.suggested_partners_def.done($.proxy(function () { - this._closeComposer(true); - this._composer._onOpenFullComposer(); - }, this)); + this.suggested_partners_def.done( + $.proxy(function() { + this._closeComposer(true); + this._composer._onOpenFullComposer(); + }, this) + ); }, }); }); diff --git a/web_send_message_popup/templates/assets.xml b/web_send_message_popup/templates/assets.xml index 6634d7386..483450529 100644 --- a/web_send_message_popup/templates/assets.xml +++ b/web_send_message_popup/templates/assets.xml @@ -1,8 +1,15 @@ - + -