[FIX] calendar.event: wrong return type when message_post was called from new API
This commit is contained in:
@@ -1408,6 +1408,7 @@ class calendar_event(osv.Model):
|
||||
event.message_needaction = rec.message_needaction
|
||||
|
||||
@api.cr_uid_ids_context
|
||||
@api.returns('mail.message', lambda value: value.id)
|
||||
def message_post(self, cr, uid, thread_id, context=None, **kwargs):
|
||||
if isinstance(thread_id, basestring):
|
||||
thread_id = get_real_ids(thread_id)
|
||||
|
||||
Reference in New Issue
Block a user