[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:
commit
24d45dbb99
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue