From 598d120e5e3cca488396486081e894c1d0437055 Mon Sep 17 00:00:00 2001 From: Denis Mudarisov Date: Tue, 22 Dec 2020 14:44:51 +0500 Subject: [PATCH] :ambulance: make module work after changes in mail_base the need for action was caused by this commit https://github.com/itpp-labs/mail-addons/commit/eaf2fb3c88a03a72de74d7030655aec81ee5575a --- mail_all/__manifest__.py | 6 ++++-- mail_all/doc/changelog.rst | 5 +++++ mail_all/static/src/js/mail_all.js | 21 +++++++++++++-------- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/mail_all/__manifest__.py b/mail_all/__manifest__.py index 0af0dd9..6642876 100644 --- a/mail_all/__manifest__.py +++ b/mail_all/__manifest__.py @@ -1,14 +1,16 @@ +# Copyright 2020 Denis Mudarisov +# License MIT (https://opensource.org/licenses/MIT). { "name": "Show all messages", "summary": """Checkout all messages where you have access""", "category": "Discuss", # "live_test_url": "", "images": ["images/1.jpg"], - "version": "11.0.1.0.0", + "version": "11.0.1.0.1", "application": False, "author": "IT-Projects LLC, Pavel Romanchenko", "support": "apps@itpp.dev", - "website": "https://it-projects.info", + "website": "https://twitter.com/OdooFree", "license": "Other OSI approved licence", # MIT "price": 40.00, "currency": "EUR", diff --git a/mail_all/doc/changelog.rst b/mail_all/doc/changelog.rst index 9ee2b48..caf6826 100644 --- a/mail_all/doc/changelog.rst +++ b/mail_all/doc/changelog.rst @@ -1,3 +1,8 @@ +`1.0.1` +------- + +- **Fix:** adaptation to changes in `mail_base` + `1.0.0` ------- diff --git a/mail_all/static/src/js/mail_all.js b/mail_all/static/src/js/mail_all.js index 8c9f707..4b50b13 100644 --- a/mail_all/static/src/js/mail_all.js +++ b/mail_all/static/src/js/mail_all.js @@ -1,3 +1,6 @@ +/* Copyright 2020 Denis Mudarisov + License MIT (https://opensource.org/licenses/MIT). */ + odoo.define("mail_all.all", function(require) { "use strict"; @@ -16,6 +19,8 @@ odoo.define("mail_all.all", function(require) { }, }); + + chat_manager.is_ready = chat_manager.is_ready.then(function () { // Override methods var chat_manager_super = _.clone(chat_manager); @@ -42,14 +47,14 @@ odoo.define("mail_all.all", function(require) { : chat_manager_super.get_domain.apply(this, arguments); }; - chat_manager.is_ready.then(function() { - // Add all channel - chat_manager.add_channel({ - id: "channel_all", - name: _lt("All messages"), - type: "static", - }); - return $.when(); + // Add all channel + chat_manager.add_channel({ + id: "channel_all", + name: _lt("All messages"), + type: "static", + }); + return $.when(); + }); return chat_manager;