Browse Source
🚑 make module work after changes in mail_base
the need for action was caused by this commit eaf2fb3c88
pull/329/head
Denis Mudarisov
4 years ago
No known key found for this signature in database
GPG Key ID: B9AD74DAFB7B53DA
3 changed files with
18 additions and
9 deletions
-
mail_sent/__manifest__.py
-
mail_sent/doc/changelog.rst
-
mail_sent/static/src/js/sent.js
|
|
@ -1,9 +1,11 @@ |
|
|
|
# Copyright 2020 Denis Mudarisov <https://github.com/trojikman> |
|
|
|
# License MIT (https://opensource.org/licenses/MIT). |
|
|
|
{ |
|
|
|
"name": "Sentbox", |
|
|
|
"summary": """Quick way to find sent messages""", |
|
|
|
"category": "Discuss", |
|
|
|
"images": ["images/menu.png"], |
|
|
|
"version": "11.0.1.1.0", |
|
|
|
"version": "11.0.1.1.1", |
|
|
|
"author": "IT-Projects LLC, Ivan Yelizariev, Pavel Romanchenko", |
|
|
|
"support": "apps@itpp.dev", |
|
|
|
"website": "https://it-projects.info", |
|
|
|
|
|
@ -1,3 +1,8 @@ |
|
|
|
`1.1.1` |
|
|
|
------- |
|
|
|
|
|
|
|
- **Fix:** adaptation to changes in `mail_base` |
|
|
|
|
|
|
|
`1.1.0` |
|
|
|
------- |
|
|
|
|
|
|
|
|
|
@ -1,3 +1,5 @@ |
|
|
|
/* Copyright 2020 Denis Mudarisov <https://github.com/trojikman> |
|
|
|
License MIT (https://opensource.org/licenses/MIT). */
|
|
|
|
odoo.define("mail_sent.sent", function(require) { |
|
|
|
"use strict"; |
|
|
|
|
|
|
@ -25,6 +27,7 @@ odoo.define("mail_sent.sent", function(require) { |
|
|
|
}, |
|
|
|
}); |
|
|
|
|
|
|
|
chat_manager.is_ready.then(function() { |
|
|
|
// Inherit class and override methods
|
|
|
|
var chat_manager_super = _.clone(chat_manager); |
|
|
|
chat_manager.get_properties = function(msg) { |
|
|
@ -55,14 +58,13 @@ odoo.define("mail_sent.sent", function(require) { |
|
|
|
: chat_manager_super.get_domain.apply(this, arguments); |
|
|
|
}; |
|
|
|
|
|
|
|
chat_manager.is_ready.then(function() { |
|
|
|
// Add sent channel
|
|
|
|
chat_manager.add_channel({ |
|
|
|
id: "channel_sent", |
|
|
|
name: _lt("Sent"), |
|
|
|
type: "static", |
|
|
|
}); |
|
|
|
return $.when(); |
|
|
|
// Add sent channel
|
|
|
|
chat_manager.add_channel({ |
|
|
|
id: "channel_sent", |
|
|
|
name: _lt("Sent"), |
|
|
|
type: "static", |
|
|
|
}); |
|
|
|
return $.when(); |
|
|
|
}); |
|
|
|
|
|
|
|
return chat_manager; |
|
|
|