From bab597bb47159f6b12a1cf8f7e845a3d42a3af8b Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Fri, 17 Nov 2017 15:24:49 +0100 Subject: [PATCH] [FIX] calendar: r_date must be defined before use commit b4ec51021ba2a4f6cb9be29e4c3dae9bf2c4a56f forgot about the case where no domain was supplied or when the conditions on it were not fulfilled. before this commit, a traceback was thrown and no event was shown After this commit, no errors and all the relevant events are shown opw 782985 --- addons/calendar/calendar.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/calendar/calendar.py b/addons/calendar/calendar.py index 43064b369d6..b1644c64edd 100644 --- a/addons/calendar/calendar.py +++ b/addons/calendar/calendar.py @@ -1197,6 +1197,7 @@ class calendar_event(osv.Model): # check if there are one False pile = [] ok = True + r_date = None for arg in domain: if str(arg[0]) in ('start', 'stop', 'final_date'): if str(arg[0]) == 'start':