Browse Source

[FIX] remove depends on the mail_sent

pull/22/head
x620 9 years ago
parent
commit
4004e007c1
  1. 2
      mail_archives/__openerp__.py
  2. 6
      mail_archives/static/src/js/archives.js

2
mail_archives/__openerp__.py

@ -13,7 +13,7 @@
'currency': 'EUR', 'currency': 'EUR',
"depends": [ "depends": [
"mail_sent",
"mail_base",
], ],
"data": [ "data": [

6
mail_archives/static/src/js/archives.js

@ -42,10 +42,7 @@ base_obj.MailTools.include({
} }
// If author or recipient // If author or recipient
if (
(data.sent && data.author_id[0] == session.partner_id)
|| (recipients_ids.indexOf(session.partner_id) != -1)
) {
if (data.author_id[0] == session.partner_id || recipients_ids.indexOf(session.partner_id) != -1) {
msg.is_archive = true; msg.is_archive = true;
} }
@ -60,7 +57,6 @@ base_obj.MailTools.include({
get_domain: function(channel){ get_domain: function(channel){
return (channel.id === "channel_archive") ? [ return (channel.id === "channel_archive") ? [
'|', ['partner_ids', 'in', [openerp.session.partner_id]], '|', ['partner_ids', 'in', [openerp.session.partner_id]],
'&', ['sent', '=', true],
['author_id.user_ids', 'in', [openerp.session.uid]] ['author_id.user_ids', 'in', [openerp.session.uid]]
] : this._super.apply(this, arguments); ] : this._super.apply(this, arguments);
} }

Loading…
Cancel
Save