[FIX] Chatter: notification emails: removed the limit on the related record name stored in mail.message, that was leading to emails send with very short subjects.

bzr revid: tde@openerp.com-20130115130539-46ndfydgcjhgep2j
This commit is contained in:
Thibault Delavallée 2013-01-15 14:05:39 +01:00
commit 24d45dbb99
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class mail_message(osv.Model):
for message in self.read(cr, uid, ids, ['model', 'res_id'], context=context):
if not message.get('model') or not message.get('res_id') or not self.pool.get(message['model']):
continue
result[message['id']] = self._shorten_name(self.pool.get(message['model']).name_get(cr, SUPERUSER_ID, [message['res_id']], context=context)[0][1])
result[message['id']] = self.pool.get(message['model']).name_get(cr, SUPERUSER_ID, [message['res_id']], context=context)[0][1]
return result
def _get_to_read(self, cr, uid, ids, name, arg, context=None):