Browse Source

🚑 make module work after changes in mail_base

the need for action was caused by this commit eaf2fb3c88
pull/327/head
Denis Mudarisov 4 years ago
parent
commit
598d120e5e
No known key found for this signature in database GPG Key ID: B9AD74DAFB7B53DA
  1. 6
      mail_all/__manifest__.py
  2. 5
      mail_all/doc/changelog.rst
  3. 21
      mail_all/static/src/js/mail_all.js

6
mail_all/__manifest__.py

@ -1,14 +1,16 @@
# Copyright 2020 Denis Mudarisov <https://github.com/trojikman>
# License MIT (https://opensource.org/licenses/MIT).
{ {
"name": "Show all messages", "name": "Show all messages",
"summary": """Checkout all messages where you have access""", "summary": """Checkout all messages where you have access""",
"category": "Discuss", "category": "Discuss",
# "live_test_url": "", # "live_test_url": "",
"images": ["images/1.jpg"], "images": ["images/1.jpg"],
"version": "11.0.1.0.0",
"version": "11.0.1.0.1",
"application": False, "application": False,
"author": "IT-Projects LLC, Pavel Romanchenko", "author": "IT-Projects LLC, Pavel Romanchenko",
"support": "apps@itpp.dev", "support": "apps@itpp.dev",
"website": "https://it-projects.info",
"website": "https://twitter.com/OdooFree",
"license": "Other OSI approved licence", # MIT "license": "Other OSI approved licence", # MIT
"price": 40.00, "price": 40.00,
"currency": "EUR", "currency": "EUR",

5
mail_all/doc/changelog.rst

@ -1,3 +1,8 @@
`1.0.1`
-------
- **Fix:** adaptation to changes in `mail_base`
`1.0.0` `1.0.0`
------- -------

21
mail_all/static/src/js/mail_all.js

@ -1,3 +1,6 @@
/* Copyright 2020 Denis Mudarisov <https://github.com/trojikman>
License MIT (https://opensource.org/licenses/MIT). */
odoo.define("mail_all.all", function(require) { odoo.define("mail_all.all", function(require) {
"use strict"; "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 // Override methods
var chat_manager_super = _.clone(chat_manager); 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_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; return chat_manager;

Loading…
Cancel
Save