Browse Source

💚 mail_sent/static/src/js/sent

pull/258/head
Ivan Yelizariev 5 years ago
parent
commit
b1a9a44979
No known key found for this signature in database GPG Key ID: 93F14FB6A8B57057
  1. 8
      mail_sent/static/src/js/sent.js

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

Loading…
Cancel
Save