diff --git a/mail_base/__manifest__.py b/mail_base/__manifest__.py index 6a68514..27fad67 100644 --- a/mail_base/__manifest__.py +++ b/mail_base/__manifest__.py @@ -7,7 +7,7 @@ "summary": """Makes Mail extendable""", "category": "Discuss", "images": ["images/mail_base_image.png"], - "version": "11.0.1.1.1", + "version": "11.0.1.1.2", "author": "IT-Projects LLC, Pavel Romanchenko", "support": "apps@itpp.dev", "website": "https://it-projects.info", diff --git a/mail_base/doc/changelog.rst b/mail_base/doc/changelog.rst index 83589b0..cd75d3e 100644 --- a/mail_base/doc/changelog.rst +++ b/mail_base/doc/changelog.rst @@ -1,3 +1,8 @@ +`1.1.2` +------- + +**FIX**: random initialization errors + `1.1.1` ------- diff --git a/mail_base/static/lib/base.js b/mail_base/static/lib/base.js index fa9dcbe..609322d 100644 --- a/mail_base/static/lib/base.js +++ b/mail_base/static/lib/base.js @@ -123,6 +123,8 @@ ChatAction.include({ } }); +function init_chat_manager(){ + chat_manager.notify_incoming_message = function (msg, options) { if (bus.is_odoo_focused() && options.is_displayed) { // no need to notify @@ -1409,11 +1411,17 @@ chat_manager.search_partner = function (search_val, limit) { }); } +}; // init_chat_manager + +chat_manager.is_ready = chat_manager.is_ready.then(function(){ + +init_chat_manager(); chat_manager.start(); bus.off('notification'); bus.on('notification', null, function () { chat_manager.on_notification.apply(chat_manager, arguments); }); +}); return { ODOOBOT_ID: ODOOBOT_ID,