Browse Source

[DOC] mail_sent/__openerp__.py, mail_archive/__openerp__.py: update summary

[REF] optimize format_message() in models.py
[DOC] update screenshots for description (make correct size)
pull/6/head
x620 8 years ago
parent
commit
86e2a75989
  1. 2
      mail_archives/__openerp__.py
  2. 2
      mail_sent/__openerp__.py
  3. 9
      mail_sent/models.py
  4. BIN
      mail_sent/static/description/menu.png
  5. BIN
      mail_sent/static/description/messages.png

2
mail_archives/__openerp__.py

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
{
"name": "mail_archives",
"summary": """Create archive channel""",
"summary": """Adds menu to find old messages""",
"category": "Discuss",
"images": [],
"version": "1.0.0",

2
mail_sent/__openerp__.py

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
{
"name": "Sentbox",
"summary": """Create sent channel""",
"summary": """Quick way to find sent messages""",
"category": "Discuss",
"images": [],
"version": "1.0.3",

9
mail_sent/models.py

@ -19,10 +19,11 @@ class MailMessage(models.Model):
@api.multi
def message_format(self):
message_values = super(MailMessage, self).message_format()
for message in message_values:
for item in self:
if message['id'] == item.id:
message['sent'] = item.sent
message_index = {message['id']: message for message in message_values}
for item in self:
msg = message_index.get(item.id)
if msg:
msg['sent'] = item.sent
return message_values

BIN
mail_sent/static/description/menu.png

Before

Width: 246  |  Height: 247  |  Size: 15 KiB

After

Width: 217  |  Height: 167  |  Size: 8.9 KiB

BIN
mail_sent/static/description/messages.png

Before

Width: 453  |  Height: 645  |  Size: 143 KiB

After

Width: 625  |  Height: 217  |  Size: 39 KiB

Loading…
Cancel
Save