[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
This commit is contained in:
Olivier Dony
2012-08-22 21:16:30 +02:00
parent 2b14337518
commit 7dd0bfa766
+1 -1
View File
@@ -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