From 1a23506b4b09b888acd5b8a601aa8cf9401fd40f Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Thu, 16 Jul 2015 16:20:03 +0200 Subject: [PATCH] [FIX] mail: forgotten context in new api migration --- addons/mail/models/mail_thread.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py index 165ac491284..f8e01781cd4 100644 --- a/addons/mail/models/mail_thread.py +++ b/addons/mail/models/mail_thread.py @@ -1426,7 +1426,7 @@ class MailThread(models.AbstractModel): @api.multi @api.returns('self', lambda value: value.id) def message_post(self, body='', subject=None, message_type='notification', - subtype=None, parent_id=False, attachments=None, context=None, + subtype=None, parent_id=False, attachments=None, content_subtype='html', **kwargs): """ Post a new message in an existing thread, returning the new mail.message ID. @@ -1586,7 +1586,7 @@ class MailThread(models.AbstractModel): return result @api.multi - def message_subscribe(self, partner_ids, subtype_ids=None, context=None): + def message_subscribe(self, partner_ids, subtype_ids=None): """ Add partners to the records followers. """ # not necessary for computation, but saves an access right check if not partner_ids: