diff --git a/addons/calendar/models/calendar.py b/addons/calendar/models/calendar.py index ef717319aef..677afec01c0 100644 --- a/addons/calendar/models/calendar.py +++ b/addons/calendar/models/calendar.py @@ -1129,6 +1129,9 @@ class Meeting(models.Model): select_fields = ["id"] where_params_list = [] for pos, arg in enumerate(domain): + # hack: if we received recurrent ids, we need to clean them + if arg[0] == 'id' and arg[1] in ('in', 'not in'): + arg = (arg[0], arg[1], [calendar_id2real_id(id) for id in arg[2]]) if not arg[0] in ('start', 'stop', 'final_date', '&', '|'): e = expression.expression([arg], self) where_clause, where_params = e.to_sql() # CAUTION, wont work if field is autojoin, not supported