From a6769160028db273da13c23efc5386626e5cccf2 Mon Sep 17 00:00:00 2001 From: "Pooja Zankhariya (OpenERP)" Date: Fri, 1 Nov 2013 12:38:21 +0500 Subject: [PATCH] [IMP]Improved value in breadcrumb bzr revid: pza@tinyerp.com-20131101073821-dugeqgue1a0o4ry5 --- 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