summaryrefslogtreecommitdiff
path: root/addons/lunch/models
diff options
context:
space:
mode:
Diffstat (limited to 'addons/lunch/models')
-rw-r--r--addons/lunch/models/lunch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/lunch/models/lunch.py b/addons/lunch/models/lunch.py
index eb5b803065b..85059464886 100644
--- a/addons/lunch/models/lunch.py
+++ b/addons/lunch/models/lunch.py
@@ -62,7 +62,7 @@ class LunchOrder(models.Model):
if alert.display]
if self.state == 'new':
- self.alerts = '\n'.join(alert_msg)
+ self.alerts = alert_msg and '\n'.join(alert_msg) or False
@api.depends('state')
def _compute_get_previous_order_ids(self):