Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] point_of_sale: set the payment date based on TZ
If a user is in an early timezone (e.g. UTC-5), an order made on the ...-01 19:15:00 or, converted to UTC, as ...-02 00:15:00 fields.Date.today() returns the days ...-02 instead of ...-01 Use context_today to convert in the right timezone. This slightly change the return format of _payment_fields to return a date instead of a datetime. Followup of 7272abe that was adding the timezone in the context Closes odoo#22651
- Loading branch information