Files
odoo_source/addons/hr_holidays/tests/__init__.py
T
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

21 lines
701 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import test_access_rights
from . import test_automatic_leave_dates
from . import test_allocation_access_rights
from . import test_holidays_flow
from . import test_hr_holidays_cancel_leave
from . import test_hr_holidays_tour
from . import test_hr_leave_type
from . import test_accrual_allocations
from . import test_change_department
from . import test_leave_requests
from . import test_out_of_office
from . import test_company_leave
from . import test_res_partner
from . import test_stress_days
from . import test_global_leaves
from . import test_uninstall
from . import test_holidays_calendar