forked from Techsystech/web
[12.0][MIG] web_send_message_popup: migrate
parent
740ddd17b4
commit
18e7ea06a6
|
@ -1,8 +1,8 @@
|
||||||
# Copyright 2014-2018 Camptocamp SA
|
# Copyright 2014-2019 Camptocamp SA
|
||||||
# License AGPL-3.0 or later (http://gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://gnu.org/licenses/agpl).
|
||||||
{
|
{
|
||||||
'name': 'Web Send Message as Popup',
|
'name': 'Web Send Message as Popup',
|
||||||
'version': '11.0.1.0.0',
|
'version': '12.0.1.0.0',
|
||||||
'author': "Camptocamp, Odoo Community Association (OCA)",
|
'author': "Camptocamp, Odoo Community Association (OCA)",
|
||||||
'maintainer': 'Camptocamp',
|
'maintainer': 'Camptocamp',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
# Translation of Odoo Server.
|
|
||||||
# This file contains the translation of the following modules:
|
|
||||||
#
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: Odoo Server 11.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"
|
|
||||||
|
|
|
@ -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.
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright 2018 Camptocamp SA
|
/* Copyright 2019 Camptocamp SA
|
||||||
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */
|
* 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";
|
"use strict";
|
||||||
|
@ -7,22 +7,11 @@ odoo.define('web_send_message_popup.Chatter', function (require) {
|
||||||
|
|
||||||
Chatter.include({
|
Chatter.include({
|
||||||
_onOpenComposerMessage: function () {
|
_onOpenComposerMessage: function () {
|
||||||
// wait for composer input to be initialized
|
this._super.apply(this, arguments);
|
||||||
// taken from http://stackoverflow.com/questions/7307983/while-variable-is-not-defined-wait
|
this.suggested_partners_def.done($.proxy(function () {
|
||||||
var self = this;
|
this._closeComposer(true);
|
||||||
$.when(this._super.apply(this, arguments)).then(function () {
|
this._composer._onOpenFullComposer();
|
||||||
function checkVariable() {
|
}, this));
|
||||||
if (typeof self.composer !== 'undefined' && typeof self.composer.$input !== 'undefined') {
|
},
|
||||||
self.composer.on_open_full_composer();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
setTimeout(function () {
|
|
||||||
checkVariable();
|
|
||||||
}, 50);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
checkVariable();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue