summaryrefslogtreecommitdiff
path: root/addons/lunch/models/lunch.py
diff options
context:
space:
mode:
authorJérome Maes <jem@openerp.com>2015-09-07 14:09:17 +0200
committerJérome Maes <jem@openerp.com>2015-09-08 09:37:53 +0200
commit1addd02390f8aaa540acfcb698e7b4e9151ccf4e (patch)
treebc99c377ab8b09131627bf9351f58c166f8705d3 /addons/lunch/models/lunch.py
parent22b2c02bf3a4286aa8d1bfd7f79a223fc2c1b276 (diff)
[FIX] lunch : do not display empty alert on form view
Diffstat (limited to 'addons/lunch/models/lunch.py')
-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):