103feca347321f36627c556569fa5377e7980fb9
With a user with timezone "Europe/Brussels", add a slot on the gantt view where the preceding day is a working day. The default starting time will be the previous day. Reason: the default starting time is midnight, adjusted to the closest attendance interval in the employee's calendar. However, midnight in "Europe/Brussels" is actually 10pm UTC the previous day. The method adjusting the datetime to the closest attendance only checks within the corresponding day. Two ways to fix this: 1) the business code calling `_adjust_to_calendar` should timezone the datetimes itself. To avoid similar bugs in the future, the method should be modified to only accept timezoned datetimes. 2) Change `_adjust_to_calendar` to convert datetimes it was given to the resource's timezone and consider the dates in those converted datetimes. Option 2 is chosen because it seems to take care of the problem at a lower level which allows the business code to not think about those timezone details. While this is technically an API change (in a stable release), the method was introduced recently by b058ca1 as a fix for an already broken method. closes odoo/odoo#53582 X-original-commit: c6cecac60360a1d8b0c62ee155a818a3a28505e1 Related: odoo/enterprise#11399 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%