Skip to content

Commit

Permalink
[FIX] mail: invite: name of the document was missing in the link to a…
Browse files Browse the repository at this point in the history
…ccess the document, leading to 'Access False'.
  • Loading branch information
tde-banana-odoo committed Aug 29, 2014
1 parent 28317e8 commit c51c908
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/mail/wizard/invite.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def add_followers(self, cr, uid, ids, context=None):
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]),
Expand Down

0 comments on commit c51c908

Please sign in to comment.