[REM] mail: removed dead code in mail_message

bzr revid: tde@openerp.com-20140325142507-9vgzcyfno750ungz
This commit is contained in:
Thibault Delavallée 2014-03-25 15:25:07 +01:00
parent 97d49659d0
commit d70538402b
1 changed files with 0 additions and 15 deletions

View File

@ -82,11 +82,6 @@ class mail_message(osv.Model):
context = dict(context, default_type=None)
return super(mail_message, self).default_get(cr, uid, fields, context=context)
# def _shorten_name(self, name):
# if len(name) <= (self._message_record_name_length + 3):
# return name
# return name[:self._message_record_name_length] + '...'
def _get_to_read(self, cr, uid, ids, name, arg, context=None):
""" Compute if the message is unread by the current user. """
res = dict((id, False) for id in ids)
@ -125,16 +120,6 @@ class mail_message(osv.Model):
inversed because we search unread message on a read column. """
return ['&', ('notification_ids.partner_id.user_ids', 'in', [uid]), ('notification_ids.starred', '=', domain[0][2])]
# def name_get(self, cr, uid, ids, context=None):
# # name_get may receive int id instead of an id list
# if isinstance(ids, (int, long)):
# ids = [ids]
# res = []
# for message in self.browse(cr, uid, ids, context=context):
# name = '%s: %s' % (message.subject or '', strip_tags(message.body or '') or '')
# res.append((message.id, self._shorten_name(name.lstrip(' :'))))
# return res
_columns = {
'type': fields.selection([
('email', 'Email'),