Purpose ======= Currently, when setting a global leave for a company, the leave validation raises an UserError if there is already a leave on those dates. Specification ============= Manage the conflicts for easy tests cases: - The global time off is taken in days - The conflicting leaves are all in days/half days For those use cases, refuse all the conflicting leaves and recreate other one before and/or after the global time off, according to the use case. Taskid: 2230549 X-original-commit: 20ef422fea7793fc87dbf51c43699bb7872036f9
14 lines
460 B
Python
14 lines
460 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_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
|