From 9b78310497d1203ccca61ed1ada93a2f8c66095a Mon Sep 17 00:00:00 2001 From: Stephane Mangin Date: Thu, 4 Feb 2021 12:33:08 +0100 Subject: [PATCH] [MIG] web_send_message_popup: Migration to 13.0 --- web_send_message_popup/__manifest__.py | 8 ++++---- web_send_message_popup/i18n/es.po | 14 -------------- .../i18n/web_send_message_popup.pot | 14 -------------- web_send_message_popup/i18n/zh_CN.po | 14 -------------- web_send_message_popup/readme/CONTRIBUTORS.rst | 1 + web_send_message_popup/static/src/js/chatter.js | 12 +++++------- 6 files changed, 10 insertions(+), 53 deletions(-) delete mode 100644 web_send_message_popup/i18n/es.po delete mode 100644 web_send_message_popup/i18n/web_send_message_popup.pot delete mode 100644 web_send_message_popup/i18n/zh_CN.po diff --git a/web_send_message_popup/__manifest__.py b/web_send_message_popup/__manifest__.py index e1bb0e05a..8b86505b4 100644 --- a/web_send_message_popup/__manifest__.py +++ b/web_send_message_popup/__manifest__.py @@ -1,13 +1,13 @@ -# Copyright 2014-2019 Camptocamp SA +# Copyright 2014-2021 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", + "version": "13.0.1.0.0", "author": "Camptocamp, Odoo Community Association (OCA)", "maintainer": "Camptocamp", "license": "AGPL-3", "category": "Hidden", - "depends": ["web", "mail",], + "depends": ["web", "mail"], "website": "https://github.com/OCA/web", - "data": ["templates/assets.xml",], + "data": ["templates/assets.xml"], } diff --git a/web_send_message_popup/i18n/es.po b/web_send_message_popup/i18n/es.po deleted file mode 100644 index 7461f0845..000000000 --- a/web_send_message_popup/i18n/es.po +++ /dev/null @@ -1,14 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" -"Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" -"Language-Team: none\n" -"Language: es\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" diff --git a/web_send_message_popup/i18n/web_send_message_popup.pot b/web_send_message_popup/i18n/web_send_message_popup.pot deleted file mode 100644 index d2e396f15..000000000 --- a/web_send_message_popup/i18n/web_send_message_popup.pot +++ /dev/null @@ -1,14 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" -"Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - diff --git a/web_send_message_popup/i18n/zh_CN.po b/web_send_message_popup/i18n/zh_CN.po deleted file mode 100644 index 4159be77e..000000000 --- a/web_send_message_popup/i18n/zh_CN.po +++ /dev/null @@ -1,14 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" -"Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" -"Language-Team: none\n" -"Language: zh_CN\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=1; plural=0;\n" diff --git a/web_send_message_popup/readme/CONTRIBUTORS.rst b/web_send_message_popup/readme/CONTRIBUTORS.rst index 614c0f832..f031b4d70 100644 --- a/web_send_message_popup/readme/CONTRIBUTORS.rst +++ b/web_send_message_popup/readme/CONTRIBUTORS.rst @@ -2,3 +2,4 @@ * Yannick Vaucher * Nicolas JEUDY * Artem Kostyuk +* Stéphane Mangin diff --git a/web_send_message_popup/static/src/js/chatter.js b/web_send_message_popup/static/src/js/chatter.js index adc13d9a3..e916cfee9 100644 --- a/web_send_message_popup/static/src/js/chatter.js +++ b/web_send_message_popup/static/src/js/chatter.js @@ -1,4 +1,4 @@ -/* Copyright 2019 Camptocamp SA +/* Copyright 2019-2021 Camptocamp SA * License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */ odoo.define("web_send_message_popup.Chatter", function(require) { "use strict"; @@ -8,12 +8,10 @@ odoo.define("web_send_message_popup.Chatter", function(require) { Chatter.include({ _onOpenComposerMessage: function() { this._super.apply(this, arguments); - this.suggested_partners_def.done( - $.proxy(function() { - this._closeComposer(true); - this._composer._onOpenFullComposer(); - }, this) - ); + var self = this; + this._suggestedPartnersProm.then(function() { + self._composer._onOpenFullComposer(); + }); }, }); });