From 7dd0bfa76686d255813b14f0667ba444b2ec6b00 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Wed, 22 Aug 2012 21:16:30 +0200 Subject: [PATCH] [FIX] mail.thread make body an optional keywarg, so it can be passed via **args - should always be explicitly specified bzr revid: odo@openerp.com-20120822191630-55anhcuu0l1j0ioq --- addons/mail/mail_thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 6867c0e08b1..8e5222f6d04 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -516,7 +516,7 @@ class mail_thread(osv.Model): now deprecated res.log.") self.message_post(cr, uid, [id], message, context=context) - def message_post(self, cr, uid, thread_id, body, subject=False, + def message_post(self, cr, uid, thread_id, body='', subject=False, msg_type='notification', parent_id=False, attachments=None, context=None, **kwargs): """Post a new message in an existing message thread, returning the new mail.message ID. Extra keyword arguments will be used as default column values for the new