'get the alerts to display on the order form'

@api.depends('state')
def _compute_alerts_get(self):

    alert_msg = [alert.message for alert in self.env['lunch.alert'].search([]) if alert.display]
    if (self.state == 'new'):
        self.alerts = ((alert_msg and '\n'.join(alert_msg)) or False)
