Skip to content

[16.0][FIX] shopfloor_reception: fix UTC boundaries for "Today" filters#1150

Merged
OCA-git-bot merged 1 commit intoOCA:16.0from
acsone:16.0-fix-shopfloor_reception-today-start-end-tz
Apr 2, 2026
Merged

[16.0][FIX] shopfloor_reception: fix UTC boundaries for "Today" filters#1150
OCA-git-bot merged 1 commit intoOCA:16.0from
acsone:16.0-fix-shopfloor_reception-today-start-end-tz

Conversation

@nicolas-delbovier-acsone
Copy link
Copy Markdown

The _get_today_start_end_datetime function returned naive datetimes without accounting for the user's local timezone. Since Odoo stores datetimes in UTC, this caused incorrect filtering on the "Pickings to Process Today" screen for users in non-UTC timezones.

Now, the function correctly calculates the start and end of the local day and converts those boundaries to UTC .

The `_get_today_start_end_datetime` function returned naive datetimes
without accounting for the user's local timezone. Since Odoo stores
datetimes in UTC, this caused incorrect filtering on the "Pickings to
Process Today" screen for users in non-UTC timezones.

Now, the function correctly calculates the start and end of the local
day and converts those boundaries to UTC .
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hi @mmequignon, @JuMiSanAr,
some modules you are maintaining are being modified, check this out!

Copy link
Copy Markdown

@lmignon lmignon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (Code review)

@jbaudoux
Copy link
Copy Markdown
Contributor

jbaudoux commented Apr 2, 2026

/ocabot merge patch

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-1150-by-jbaudoux-bump-patch, awaiting test results.

@jbaudoux
Copy link
Copy Markdown
Contributor

jbaudoux commented Apr 2, 2026

Tested in shopfloor reception. Looks good

@OCA-git-bot OCA-git-bot merged commit 2ae6adf into OCA:16.0 Apr 2, 2026
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 5b8d9ee. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants