[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
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user