[FIX] mail: invite: name of the document was missing in the link to access the docume...
authorThibault Delavallée <tde@openerp.com>
Fri, 29 Aug 2014 10:58:55 +0000 (12:58 +0200)
committerThibault Delavallée <tde@openerp.com>
Fri, 29 Aug 2014 11:08:10 +0000 (13:08 +0200)
addons/mail/wizard/invite.py

index 9399e4f..e3916ec 100644 (file)
@@ -91,6 +91,7 @@ class invite_wizard(osv.osv_memory):
                 mail_id = mail_mail.create(cr, uid, {
                     'model': wizard.res_model,
                     'res_id': wizard.res_id,
+                    'record_name': document.name_get()[0][1],
                     'email_from': self.pool['mail.message']._get_default_from(cr, uid, context=context),
                     'reply_to': self.pool['mail.message']._get_default_from(cr, uid, context=context),
                     'subject': _('Invitation to follow %s: %s') % (model_name, document.name_get()[0][1]),