Mitchell Admin
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
45 additions and
34 deletions
-
mail_all/__manifest__.py
-
mail_all/doc/changelog.rst
-
mail_all/static/src/js/mail_all.js
-
mail_all/static/src/xml/menu.xml
|
|
@ -1,14 +1,16 @@ |
|
|
|
# Copyright 2020 Denis Mudarisov <https://github.com/trojikman> |
|
|
|
# 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", |
|
|
|
|
|
@ -1,3 +1,8 @@ |
|
|
|
`1.0.1` |
|
|
|
------- |
|
|
|
|
|
|
|
- **Fix:** adaptation to changes in `mail_base` |
|
|
|
|
|
|
|
`1.0.0` |
|
|
|
------- |
|
|
|
|
|
|
|
|
|
@ -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) { |
|
|
|
"use strict"; |
|
|
|
|
|
|
@ -16,6 +19,7 @@ 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,7 +46,6 @@ 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", |
|
|
|
|
|
@ -7,9 +7,10 @@ |
|
|
|
t-attf-class="o_mail_chat_title_main o_mail_chat_channel_item #{(active_channel_id == 'channel_all') ? 'o_active': ''}" |
|
|
|
data-channel-id="channel_all" |
|
|
|
> |
|
|
|
<span class="o_channel_name mail_all"> <i |
|
|
|
class="fa fa-database" |
|
|
|
/> All messages </span> |
|
|
|
<span class="o_channel_name mail_all"> |
|
|
|
<i class="fa fa-database" /> |
|
|
|
All messages |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
</t> |
|
|
|