From: Thibault Delavallée Date: Fri, 29 Aug 2014 10:58:55 +0000 (+0200) Subject: [FIX] mail: invite: name of the document was missing in the link to access the docume... X-Git-Tag: 8.0.0~210 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=c51c908e85bae4d476a0ac05715b9dbafc801b57;p=odoo%2Fodoo.git [FIX] mail: invite: name of the document was missing in the link to access the document, leading to 'Access False'. --- diff --git a/addons/mail/wizard/invite.py b/addons/mail/wizard/invite.py index 9399e4f..e3916ec 100644 --- a/addons/mail/wizard/invite.py +++ b/addons/mail/wizard/invite.py @@ -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]),