Browse Source

🚑 make module work after changes in mail_base

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

4
mail_archives/__manifest__.py

@ -1,9 +1,11 @@
# Copyright 2020 Denis Mudarisov <https://github.com/trojikman>
# License MIT (https://opensource.org/licenses/MIT).
{
"name": "Mail archives",
"summary": """Adds menu to find old messages""",
"category": "Discuss",
"images": ["images/1.jpg"],
"version": "11.0.1.0.0",
"version": "11.0.1.0.1",
"author": "IT-Projects LLC, Pavel Romanchenko",
"support": "apps@itpp.dev",
"website": "https://it-projects.info",

5
mail_archives/doc/changelog.rst

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

15
mail_archives/static/src/js/archives.js

@ -1,3 +1,6 @@
/* Copyright 2020 Denis Mudarisov <https://github.com/trojikman>
* License MIT (https://opensource.org/licenses/MIT). */
odoo.define("mail_archives.archives", function(require) {
"use strict";
@ -24,6 +27,7 @@ odoo.define("mail_archives.archives", function(require) {
},
});
chat_manager.is_ready.then(function() {
// Inherit class and override methods
var chat_manager_super = _.clone(chat_manager);
@ -68,12 +72,11 @@ odoo.define("mail_archives.archives", function(require) {
: chat_manager_super.get_domain.apply(this, arguments);
};
chat_manager.is_ready.then(function() {
chat_manager.add_channel({
id: "channel_archive",
name: _lt("Archive"),
type: "static",
});
chat_manager.add_channel({
id: "channel_archive",
name: _lt("Archive"),
type: "static",
});
});
return chat_manager;

Loading…
Cancel
Save