'cancel one or more order.line, update order status and unlink existing cashmoves'

@api.one
def cancel(self):

    if self.user_has_groups('lunch.group_lunch_manager'):
        self.state = 'cancelled'
        self.cashmove.unlink()
    else:
        raise AccessError(_('Only    your    lunch    manager    cancels    the    orders.'))
