[IMP]Improved value in breadcrumb

bzr revid: pza@tinyerp.com-20131030130558-akqntn5k4rjhx771
This commit is contained in:
Pooja Zankhariya (OpenERP)
2013-10-30 18:05:58 +05:00
parent 34564de66d
commit c4dd49d317
+3
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