Yolann Sabaux 125a981465 [FIX] hr_holidays: correct start and end time off
Steps to reproduce:
- In Time Off, select a day in Month or Year view
- Save your time-off

Issue:
In the Week view, the time off starts at 7 and ends at 19

Cause:
The default_get uses the default start and end given on JS side https://github.com/odoo/odoo/blob/d2f3275eee6d3a8a7f5e69ff938d36ceda771346/addons/web/static/src/legacy/js/views/calendar/calendar_model.js#L74-L75.

Solution:
Use something like https://github.com/odoo/odoo/blob/master/addons/hr_holidays/models/hr_leave.py#L104-L110
from this pr: https://github.com/odoo/odoo/pull/77036

For that to work I had to add also the function used in it.

opw-3010846

closes odoo/odoo#111189

X-original-commit: c3d8925be33a9c596a6f6455e75e0e0ca545c62b
Related: odoo/enterprise#36391
Signed-off-by: Kevin Baptiste <kba@odoo.com>
Signed-off-by: Yolann Sabaux (yosa) <yosa@odoo.com>
2023-01-27 15:11:07 +01:00
2023-01-03 13:16:02 +01:00
…
…
…
…
2023-01-03 13:16:02 +01:00
…
2023-01-03 13:16:02 +01:00

Build Status Tech Doc Help Nightly Builds

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

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%