mirror of https://github.com/OCA/social.git
Merge pull request #61 from acsone/8.0-fix-mail_footer_notified_partners-ape
[FIX][mail_footer_notified_partners] Use @api.model instead of @api.one.pull/60/head
commit
b3bca2fb43
|
@ -48,16 +48,16 @@ class MailNotification(models.Model):
|
||||||
|
|
||||||
return footer
|
return footer
|
||||||
|
|
||||||
@api.one
|
@api.model
|
||||||
def _notify(
|
def _notify(
|
||||||
self, partners_to_notify=None, force_send=False,
|
self, message_id, partners_to_notify=None, force_send=False,
|
||||||
user_signature=True):
|
user_signature=True):
|
||||||
ctx = self.env.context.copy()
|
ctx = self.env.context.copy()
|
||||||
if not self.env.context.get('mail_notify_noemail'):
|
if not self.env.context.get('mail_notify_noemail'):
|
||||||
ctx.update({
|
ctx.update({
|
||||||
'partners_to_notify': partners_to_notify,
|
'partners_to_notify': partners_to_notify,
|
||||||
})
|
})
|
||||||
return super(MailNotification, self._model)._notify(
|
return super(MailNotification, self)._notify(
|
||||||
self.env.cr, self.env.uid, self.id,
|
message_id,
|
||||||
partners_to_notify=partners_to_notify,
|
partners_to_notify=partners_to_notify,
|
||||||
force_send=force_send, user_signature=user_signature, context=ctx)
|
force_send=force_send, user_signature=user_signature, context=ctx)
|
||||||
|
|
Loading…
Reference in New Issue