From 7029d9396b3d4989b998d7a64d291932b1b949e8 Mon Sep 17 00:00:00 2001 From: Iryna Vushnevska Date: Sun, 28 Jul 2019 20:51:49 +0300 Subject: [PATCH 1/3] [IMP] rid off delay for deffered obj --- web_send_message_popup/readme/ROADMAP.rst | 3 --- .../static/src/js/chatter.js | 25 ++++++------------- 2 files changed, 7 insertions(+), 21 deletions(-) delete mode 100644 web_send_message_popup/readme/ROADMAP.rst diff --git a/web_send_message_popup/readme/ROADMAP.rst b/web_send_message_popup/readme/ROADMAP.rst deleted file mode 100644 index ca2a85a28..000000000 --- a/web_send_message_popup/readme/ROADMAP.rst +++ /dev/null @@ -1,3 +0,0 @@ -* works even if bit flickering as it renders 1st the std widget and then shows the - other one. @simahawk checked the code and unfortunately seems there's no good - way to hook if not overriding whole big functions. diff --git a/web_send_message_popup/static/src/js/chatter.js b/web_send_message_popup/static/src/js/chatter.js index 89f88544b..929b77733 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 2018 Camptocamp SA +/* 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) { "use strict"; @@ -7,22 +7,11 @@ odoo.define('web_send_message_popup.Chatter', function (require) { Chatter.include({ _onOpenComposerMessage: function () { - // wait for composer input to be initialized - // taken from http://stackoverflow.com/questions/7307983/while-variable-is-not-defined-wait - var self = this; - $.when(this._super.apply(this, arguments)).then(function () { - function checkVariable() { - if (typeof self.composer !== 'undefined' && typeof self.composer.$input !== 'undefined') { - self.composer.on_open_full_composer(); - } - else { - setTimeout(function () { - checkVariable(); - }, 50); - } - } - checkVariable(); - }); - } + this._super.apply(this, arguments); + this.suggested_partners_def.done($.proxy(function () { + this._closeComposer(true); + this.composer.on_open_full_composer(); + }, this)); + }, }); }); From e48ebbe06535d497c149095fd7df8cafa8be2a0c Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Mon, 29 Jul 2019 16:36:34 +0000 Subject: [PATCH 2/3] [UPD] README.rst --- web_send_message_popup/README.rst | 7 ----- .../static/description/index.html | 29 +++++++------------ 2 files changed, 10 insertions(+), 26 deletions(-) diff --git a/web_send_message_popup/README.rst b/web_send_message_popup/README.rst index 2efe205ad..7cc4974ed 100644 --- a/web_send_message_popup/README.rst +++ b/web_send_message_popup/README.rst @@ -39,13 +39,6 @@ if the popup is always wanted. .. contents:: :local: -Known issues / Roadmap -====================== - -* works even if bit flickering as it renders 1st the std widget and then shows the - other one. @simahawk checked the code and unfortunately seems there's no good - way to hook if not overriding whole big functions. - Bug Tracker =========== diff --git a/web_send_message_popup/static/description/index.html b/web_send_message_popup/static/description/index.html index 61d793fac..c0fdb68cf 100644 --- a/web_send_message_popup/static/description/index.html +++ b/web_send_message_popup/static/description/index.html @@ -378,26 +378,17 @@ if the popup is always wanted.

Table of contents

-
-

Known issues / Roadmap

-
    -
  • works even if bit flickering as it renders 1st the std widget and then shows the -other one. @simahawk checked the code and unfortunately seems there’s no good -way to hook if not overriding whole big functions.
  • -
-
-

Bug Tracker

+

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 @@ -405,15 +396,15 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

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

-

Credits

+

Credits

-

Authors

+

Authors

  • Camptocamp
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose From 145db08335daf53388285086129593c221a966a0 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Mon, 29 Jul 2019 16:36:34 +0000 Subject: [PATCH 3/3] web_send_message_popup 11.0.1.0.1 --- web_send_message_popup/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_send_message_popup/__manifest__.py b/web_send_message_popup/__manifest__.py index 5d3de4331..1a3011d45 100644 --- a/web_send_message_popup/__manifest__.py +++ b/web_send_message_popup/__manifest__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (http://gnu.org/licenses/agpl). { 'name': 'Web Send Message as Popup', - 'version': '11.0.1.0.0', + 'version': '11.0.1.0.1', 'author': "Camptocamp, Odoo Community Association (OCA)", 'maintainer': 'Camptocamp', 'license': 'AGPL-3',