Browse Source

Merge pull request #328 from trojikman/11.0-mail_archives

commit is created by 👷‍♂️ Merge Bot: https://odoo-devops.readthedocs.io/en/latest/git/github-merge-bot.html
pull/329/head
Mitchell Admin 4 years ago
committed by GitHub
parent
commit
575c6df288
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      mail_archives/__manifest__.py
  2. 5
      mail_archives/doc/changelog.rst
  3. 5
      mail_archives/static/src/js/archives.js
  4. 7
      mail_archives/static/src/xml/menu.xml

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", "name": "Mail archives",
"summary": """Adds menu to find old messages""", "summary": """Adds menu to find old messages""",
"category": "Discuss", "category": "Discuss",
"images": ["images/1.jpg"], "images": ["images/1.jpg"],
"version": "11.0.1.0.0",
"version": "11.0.1.0.1",
"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://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` `1.0.0`
------- -------

5
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) { odoo.define("mail_archives.archives", function (require) {
"use strict"; "use strict";
@ -24,6 +27,7 @@ odoo.define("mail_archives.archives", function(require) {
}, },
}); });
chat_manager.is_ready.then(function () {
// Inherit class and override methods // Inherit class and override methods
var chat_manager_super = _.clone(chat_manager); var chat_manager_super = _.clone(chat_manager);
@ -68,7 +72,6 @@ odoo.define("mail_archives.archives", function(require) {
: chat_manager_super.get_domain.apply(this, arguments); : chat_manager_super.get_domain.apply(this, arguments);
}; };
chat_manager.is_ready.then(function() {
chat_manager.add_channel({ chat_manager.add_channel({
id: "channel_archive", id: "channel_archive",
name: _lt("Archive"), name: _lt("Archive"),

7
mail_archives/static/src/xml/menu.xml

@ -7,9 +7,10 @@
t-attf-class="o_mail_chat_channel_item o_mail_chat_title_main #{(active_channel_id == 'channel_archive') ? 'o_active': ''}" t-attf-class="o_mail_chat_channel_item o_mail_chat_title_main #{(active_channel_id == 'channel_archive') ? 'o_active': ''}"
data-channel-id="channel_archive" data-channel-id="channel_archive"
> >
<span class="o_channel_name mail_archives"> <i
class="fa fa-archive"
/> Archive </span>
<span class="o_channel_name mail_archives">
<i class="fa fa-archive" />
Archive
</span>
</div> </div>
</t> </t>
</t> </t>

Loading…
Cancel
Save