Searching on the history table returns wrong results
I have made an example where searching on a model within its history result in inconsistent results.
The same record could be returned when the domain is [('value', '=', 1)]
or [('value', '=', 2)]
with the same date specified in the context of course.
In the merge request linked there is also a performance improvement by using an SQL version of the filter_history
python function.