From c4dd49d31776a0e3f083a16f883cea76d569ae27 Mon Sep 17 00:00:00 2001 From: "Pooja Zankhariya (OpenERP)" Date: Wed, 30 Oct 2013 18:05:58 +0500 Subject: [PATCH] [IMP]Improved value in breadcrumb bzr revid: pza@tinyerp.com-20131030130558-akqntn5k4rjhx771 --- addons/mail/mail_mail.py | 3 +++ 1 file changed, 3 insertions(+) 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