Ivan Yelizariev
5 years ago
No known key found for this signature in database
GPG Key ID: 93F14FB6A8B57057
1 changed files with
1 additions and
7 deletions
-
mail_sent/static/src/js/sent.js
|
|
@ -4,14 +4,8 @@ odoo.define("mail_sent.sent", function(require) { |
|
|
|
var base_obj = require("mail_base.base"); |
|
|
|
|
|
|
|
// -------------------------------------------------------------------------------
|
|
|
|
var bus = require("bus.bus").bus; |
|
|
|
var config = require("web.config"); |
|
|
|
var core = require("web.core"); |
|
|
|
var data = require("web.data"); |
|
|
|
var Model = require("web.Model"); |
|
|
|
var session = require("web.session"); |
|
|
|
var time = require("web.time"); |
|
|
|
var web_client = require("web.web_client"); |
|
|
|
|
|
|
|
var _lt = core._lt; |
|
|
|
// -------------------------------------------------------------------------------
|
|
|
@ -44,7 +38,7 @@ odoo.define("mail_sent.sent", function(require) { |
|
|
|
|
|
|
|
set_channel_flags: function(data, msg) { |
|
|
|
this._super.apply(this, arguments); |
|
|
|
if (data.sent && data.author_id[0] == session.partner_id) { |
|
|
|
if (data.sent && data.author_id[0] === session.partner_id) { |
|
|
|
msg.is_sent = true; |
|
|
|
} |
|
|
|
return msg; |
|
|
|