[FIX] lunch: everyday alerts were never displayed
authorOlivier Dony <odo@openerp.com>
Fri, 11 Jan 2013 18:45:24 +0000 (19:45 +0100)
committerOlivier Dony <odo@openerp.com>
Fri, 11 Jan 2013 18:45:24 +0000 (19:45 +0100)
bzr revid: odo@openerp.com-20130111184524-izvjoiwwnir7kro7

addons/lunch/lunch.py

index f61ecc8..0f9033f 100644 (file)
@@ -107,6 +107,7 @@ class lunch_order(osv.Model):
         elif alert.alter_type == 'week':
             #the alert is activated during some days of the week
             return self.check_day(alert)
+        return True # alter_type == 'days' (every day)
 
     def _default_alerts_get(self, cr, uid, context=None):
         """