Skip to content

Commit

Permalink
Merge pull request #61 from acsone/8.0-fix-mail_footer_notified_partn…
Browse files Browse the repository at this point in the history
…ers-ape

[FIX][mail_footer_notified_partners] Use @api.model instead of @api.one.
  • Loading branch information
pedrobaeza committed May 18, 2016
2 parents 05b7284 + 6b62800 commit b3bca2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mail_footer_notified_partners/models/mail_followers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ def get_signature_footer(

return footer

@api.one
@api.model
def _notify(
self, partners_to_notify=None, force_send=False,
self, message_id, partners_to_notify=None, force_send=False,
user_signature=True):
ctx = self.env.context.copy()
if not self.env.context.get('mail_notify_noemail'):
ctx.update({
'partners_to_notify': partners_to_notify,
})
return super(MailNotification, self._model)._notify(
self.env.cr, self.env.uid, self.id,
return super(MailNotification, self)._notify(
message_id,
partners_to_notify=partners_to_notify,
force_send=force_send, user_signature=user_signature, context=ctx)

0 comments on commit b3bca2f

Please sign in to comment.