[IMP]Improved value in breadcrumb

bzr revid: pza@tinyerp.com-20131101073821-dugeqgue1a0o4ry5
This commit is contained in:
Pooja Zankhariya (OpenERP) 2013-11-01 12:38:21 +05:00
parent 66850dbe56
commit a676916002
1 changed files with 3 additions and 0 deletions

View File

@ -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