Heads-upHighlight of Weekly #003
In-memory date filters now match SQL
filtered_domain() computed quarters in four-month groups and counted weekdays from Monday, so it could disagree with search(). Both now follow PostgreSQL. Check custom code that relied on the old in-memory results.
On the upgrade checklist: 18.0 → 19.0
Pull requests and commits
Commit message
[FIX] orm: align quarter and weekday filters with SQL
In-memory date domains calculate quarters using four-month groups and
weekdays with Monday as zero. SQL uses three-month quarters and Sunday
as zero, so filtered_domain() and search() can return different records.
Correct the quarter calculation and use the same weekday numbering as
PostgreSQL for date and datetime fields.
Add regressions comparing SQL and in-memory filtering across all months
and weekdays, including the complementary domains.
Fixes #292723.