'Marks event invitation as Declined.'

@api.multi
def do_decline(self):

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