From 61398b2b467f014f79cb74c4da335ebc857ac732 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Tue, 15 Dec 2015 15:32:17 +0100 Subject: [PATCH] [FIX] calendar: recurrent event after first occurences The current code to show reccurent event would mingle on a searched domain and add recurrency test leaves as alternative next to a leaf: ('start{,_date,_datetime}', '>=', '{date value}') But in 43a12e9 the domain generated by the client was simplified, but the had not yet been updated to reflect this change. fixes #9165 closes #10084 opw-658241 --- addons/calendar/calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/calendar/calendar.py b/addons/calendar/calendar.py index 184f9e21d45..25b567a496a 100644 --- a/addons/calendar/calendar.py +++ b/addons/calendar/calendar.py @@ -1499,7 +1499,7 @@ class calendar_event(osv.Model): for arg in args: new_arg = arg - if arg[0] in ('start_date', 'start_datetime', 'start',) and arg[1] == ">=": + if arg[0] in ('stop_date', 'stop_datetime', 'stop',) and arg[1] == ">=": if context.get('virtual_id', True): new_args += ['|', '&', ('recurrency', '=', 1), ('final_date', arg[1], arg[2])] elif arg[0] == "id":