diff options
| author | Martin Trigaux <mat@odoo.com> | 2018-08-10 14:39:47 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2018-08-10 14:39:47 +0200 |
| commit | f2b8b38fb4f11c7533faf7a3754f1156510a45b2 (patch) | |
| tree | 82499af8225d0dff07c04f9dae8f0668a1ea3481 | |
| parent | 1e7eb76c30c97390a3f71d79ce6bcfef49cceabc (diff) | |
[FIX] lunch: correctly compare dates
do not compare string and dates
| -rw-r--r-- | addons/lunch/models/lunch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/lunch/models/lunch.py b/addons/lunch/models/lunch.py index 70b468367a4..5808015d09b 100644 --- a/addons/lunch/models/lunch.py +++ b/addons/lunch/models/lunch.py @@ -311,7 +311,7 @@ class LunchAlert(models.Model): '5': 'friday', '6': 'saturday'} can_display_alert = { - 'specific': (self.specific_day == fields.Date.context_today(self)), + 'specific': (str(self.specific_day) == fields.Date.context_today(self)), 'week': self[days_codes[datetime.datetime.now().strftime('%w')]], 'days': True } |
