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 3 years ago
parent
commit
53dbea02be
No known key found for this signature in database GPG Key ID: B9AD74DAFB7B53DA
  1. 4
      mail_sent/__manifest__.py
  2. 5
      mail_sent/doc/changelog.rst
  3. 18
      mail_sent/static/src/js/sent.js

4
mail_sent/__manifest__.py

@ -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",

5
mail_sent/doc/changelog.rst

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

18
mail_sent/static/src/js/sent.js

@ -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;

Loading…
Cancel
Save