'Marks event invitation as Accepted.'

@api.multi
def do_accept(self):

    result = self.write({'state': 'accepted'})
    for attendee in self:
        attendee.event_id.message_post(body=(_('%s    has    accepted    invitation') % attendee.common_name), subtype='calendar.subtype_invitation')
    return result
