diff options
| author | RomainLibert <rli@odoo.com> | 2019-09-02 11:09:14 +0000 |
|---|---|---|
| committer | RomainLibert <rli@odoo.com> | 2019-09-04 07:26:43 +0000 |
| commit | ba8bdcfaf270339c506faf7ed687bd126e530dbd (patch) | |
| tree | decf2193a7b63b7a07cd6bc88cd6af7346c8ea68 /addons/lunch/models | |
| parent | e09d7d1b25738fb6bd95b22910d79a6da053aa8b (diff) | |
[IMP] lunch: improve lunch again
Diffstat (limited to 'addons/lunch/models')
| -rw-r--r-- | addons/lunch/models/lunch_supplier.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/lunch/models/lunch_supplier.py b/addons/lunch/models/lunch_supplier.py index 5a969f9f0d2..f8b0a52635d 100644 --- a/addons/lunch/models/lunch_supplier.py +++ b/addons/lunch/models/lunch_supplier.py @@ -153,7 +153,7 @@ class LunchSupplier(models.Model): for supplier in self: now = now.astimezone(pytz.timezone(supplier.tz)) - if supplier.recurrency_end_date and now.date() > supplier.recurrency_end_date: + if supplier.recurrency_end_date and now.date() >= supplier.recurrency_end_date: supplier.available_today = False else: fieldname = 'recurrency_%s' % (WEEKDAY_TO_NAME[now.weekday()]) |
