'This method check if the alert can be displayed today
if alert type is specific : compare specific_day(date) with today\'s date
if alert type is week : check today is set as alert (checkbox true) eg. self[\'monday\']
if alert type is day : True
return : Message if can_display_alert is True else False'

@api.one
def _compute_display_get(self):

    days_codes = {'0': 'sunday', '1': 'monday', '2': 'tuesday', '3': 'wednesday', '4': 'thursday', '5': 'friday', '6': 'saturday'}
    can_display_alert = {'specific': (self.specific_day == fields.Date.context_today(self)), 'week': self[days_codes[datetime.datetime.now().strftime('%w')]], 'days': True}
    if can_display_alert[self.alert_type]:
        mynow = fields.Datetime.context_timestamp(self, datetime.datetime.now())
        hour_to = int(self.end_hour)
        min_to = int(((self.end_hour - hour_to) * 60))
        to_alert = datetime.time(hour_to, min_to)
        hour_from = int(self.start_hour)
        min_from = int(((self.start_hour - hour_from) * 60))
        from_alert = datetime.time(hour_from, min_from)
        if (from_alert <= mynow.time() <= to_alert):
            self.display = True
        else:
            self.display = False
