diff options
| author | Thibault Delavallée <tde@openerp.com> | 2015-08-04 10:31:08 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2015-08-21 12:11:55 +0200 |
| commit | 098fcb7e4e21b60b93c8e7724a4149e2520711e9 (patch) | |
| tree | 3097b6c15c4c97a137b1a02b24705c71901dbe3d /addons/mail/wizard/invite.py | |
| parent | 1617db33379b956c7d22c695185d93decf59cf12 (diff) | |
[MOV] mail: move code for email notification
Move the notification management from mail.notification to res.partner model.
Those methods belong more to the partner model, as they work on partners.
Moreover with the upcoming new model for NewChatter notification will be
heavily refactored.
Diffstat (limited to 'addons/mail/wizard/invite.py')
| -rw-r--r-- | addons/mail/wizard/invite.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/wizard/invite.py b/addons/mail/wizard/invite.py index ed04e43ec5a..0d0dd361e24 100644 --- a/addons/mail/wizard/invite.py +++ b/addons/mail/wizard/invite.py @@ -48,7 +48,7 @@ class Invite(models.TransientModel): if wizard.send_mail and wizard.message and not wizard.message == '<br>': # when deleting the message, cleditor keeps a <br> # add signature # FIXME 8.0: use notification_email_send, send a wall message and let mail handle email notification + message box - signature_company = self.env['mail.notification'].get_signature_footer(user_id=self._uid, res_model=wizard.res_model, res_id=wizard.res_id) + signature_company = self.env['res.partner'].get_signature_footer(user_id=self._uid, res_model=wizard.res_model, res_id=wizard.res_id) wizard.message = tools.append_content_to_html(wizard.message, signature_company, plaintext=False, container_tag='div') # send mail to new followers |
