diff --git a/mail_sent/__manifest__.py b/mail_sent/__manifest__.py index f8e9ee7..63ce6c8 100644 --- a/mail_sent/__manifest__.py +++ b/mail_sent/__manifest__.py @@ -1,9 +1,11 @@ +# Copyright 2020 Denis Mudarisov +# License MIT (https://opensource.org/licenses/MIT). { "name": "Sentbox", "summary": """Quick way to find sent messages""", "category": "Discuss", "images": ["images/menu.png"], - "version": "11.0.1.1.0", + "version": "11.0.1.1.1", "author": "IT-Projects LLC, Ivan Yelizariev, Pavel Romanchenko", "support": "apps@itpp.dev", "website": "https://it-projects.info", diff --git a/mail_sent/doc/changelog.rst b/mail_sent/doc/changelog.rst index e2ba0ac..34a1843 100644 --- a/mail_sent/doc/changelog.rst +++ b/mail_sent/doc/changelog.rst @@ -1,3 +1,8 @@ +`1.1.1` +------- + +- **Fix:** adaptation to changes in `mail_base` + `1.1.0` ------- diff --git a/mail_sent/static/src/js/sent.js b/mail_sent/static/src/js/sent.js index 6a88ca7..219de9e 100644 --- a/mail_sent/static/src/js/sent.js +++ b/mail_sent/static/src/js/sent.js @@ -1,3 +1,5 @@ +/* Copyright 2020 Denis Mudarisov + License MIT (https://opensource.org/licenses/MIT). */ odoo.define("mail_sent.sent", function(require) { "use strict"; @@ -25,6 +27,7 @@ odoo.define("mail_sent.sent", function(require) { }, }); + chat_manager.is_ready.then(function() { // Inherit class and override methods var chat_manager_super = _.clone(chat_manager); chat_manager.get_properties = function(msg) { @@ -55,14 +58,13 @@ odoo.define("mail_sent.sent", function(require) { : chat_manager_super.get_domain.apply(this, arguments); }; - chat_manager.is_ready.then(function() { - // Add sent channel - chat_manager.add_channel({ - id: "channel_sent", - name: _lt("Sent"), - type: "static", - }); - return $.when(); + // Add sent channel + chat_manager.add_channel({ + id: "channel_sent", + name: _lt("Sent"), + type: "static", + }); + return $.when(); }); return chat_manager;