diff --git a/addons/mail/mail_alias.py b/addons/mail/mail_alias.py
index 97d2842d15c..c876439484d 100644
--- a/addons/mail/mail_alias.py
+++ b/addons/mail/mail_alias.py
@@ -129,16 +129,18 @@ class mail_alias(osv.Model):
]
def name_get(self, cr, uid, ids, context=None):
- """Return the mail alias display alias_name, inclusing the implicit
- mail catchall domain from config.
- e.g. `jobs@openerp.my.openerp.com` or `sales@openerp.my.openerp.com`
+ """Return the mail alias display alias_name, including the implicit
+ mail catchall domain if exists from config otherwise "New Alias".
+ e.g. `jobs@openerp.my.openerp.com` or `jobs` or 'New Alias'
"""
res = []
for record in self.browse(cr, uid, ids, context=context):
if record.alias_name and record.alias_domain:
res.append((record['id'], "%s@%s" % (record.alias_name, record.alias_domain)))
+ elif record.alias_name:
+ res.append((record['id'], "%s" % (record.alias_name)))
else:
- res.append((record['id'], False))
+ res.append((record['id'], "New Alias"))
return res
def _find_unique(self, cr, uid, name, context=None):
diff --git a/addons/mail/mail_mail.py b/addons/mail/mail_mail.py
index 8e99655dddb..01d48c73d6a 100644
--- a/addons/mail/mail_mail.py
+++ b/addons/mail/mail_mail.py
@@ -68,6 +68,9 @@ class mail_mail(osv.Model):
'state': 'outgoing',
}
+ def name_get(self, cr, uid, ids, context=None):
+ return [(mail["id"], "%s" % (mail['subject'] or "New Mail")) for mail in self.read(cr, uid, ids, ['subject'], context=context)]
+
def default_get(self, cr, uid, fields, context=None):
# protection for `default_type` values leaking from menu action context (e.g. for invoices)
# To remove when automatic context propagation is removed in web client
diff --git a/addons/mail/mail_mail_view.xml b/addons/mail/mail_mail_view.xml
index dd6a78fd8a4..3486a0128a7 100644
--- a/addons/mail/mail_mail_view.xml
+++ b/addons/mail/mail_mail_view.xml
@@ -10,6 +10,7 @@
+
@@ -36,7 +37,6 @@
-
diff --git a/addons/mail/mail_message.py b/addons/mail/mail_message.py
index 72ccdc83bb6..e93eee01f4a 100644
--- a/addons/mail/mail_message.py
+++ b/addons/mail/mail_message.py
@@ -179,7 +179,7 @@ class mail_message(osv.Model):
string='Notifications', auto_join=True,
help='Technical field holding the message notifications. Use notified_partner_ids to access notified partners.'),
'subject': fields.char('Subject'),
- 'date': fields.datetime('Date'),
+ 'date': fields.datetime('Date', readonly=1),
'message_id': fields.char('Message-Id', help='Message unique identifier', select=1, readonly=1),
'body': fields.html('Contents', help='Automatically sanitized HTML contents'),
'to_read': fields.function(_get_to_read, fnct_search=_search_to_read,
diff --git a/addons/report_webkit/header_view.xml b/addons/report_webkit/header_view.xml
index 30407f89385..a5b4add8a8d 100644
--- a/addons/report_webkit/header_view.xml
+++ b/addons/report_webkit/header_view.xml
@@ -5,12 +5,12 @@
ir.header_img