[FIX] mail.thread: missin argument in log

bzr revid: tde@openerp.com-20120402140958-r4qi3588q9x50h12
This commit is contained in:
Thibault Delavallée
2012-04-02 16:09:58 +02:00
parent 995b99698d
commit b131f0d5d3
+1 -1
View File
@@ -656,7 +656,7 @@ class mail_thread(osv.osv):
def log(self, cr, uid, id, message, secondary=False, context=None):
_logger.warning("log() is deprecated. Please use OpenChatter notification system instead of the res.log mechanism.")
self.message_append_note(cr, uid, [id], message, context=context)
self.message_append_note(cr, uid, [id], 'res.log', message, context=context)
# tmp stuff
def message_add_note(self, cr, uid, ids, body, type='notification', parent_id=False, subject=False, subtype='html', context=None):