-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] hr_holidays_public: Migration to 18.0
- Loading branch information
1 parent
0c1d77d
commit 0b3df3b
Showing
23 changed files
with
144 additions
and
852 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,19 +17,17 @@ HR Holidays Public | |
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr--holidays-lightgray.png?logo=github | ||
:target: https://github.com/OCA/hr-holidays/tree/17.0/hr_holidays_public | ||
:target: https://github.com/OCA/hr-holidays/tree/18.0/hr_holidays_public | ||
:alt: OCA/hr-holidays | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/hr-holidays-17-0/hr-holidays-17-0-hr_holidays_public | ||
:target: https://translation.odoo-community.org/projects/hr-holidays-18-0/hr-holidays-18-0-hr_holidays_public | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/hr-holidays&target_branch=17.0 | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/hr-holidays&target_branch=18.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module handles public holidays. | ||
|
||
The calculation of each leave can exclude rest public holiday, depending | ||
on the leave type configuration. | ||
|
||
|
@@ -47,14 +45,15 @@ Configuration | |
Go to *Time Off -> Configuration -> Time Off Types* and open a Leave | ||
Type | ||
|
||
- Check "Exclude Public Holidays" to exclude public holidays. | ||
- Check "Exclude Public Holidays" to exclude public holidays. | ||
|
||
Usage | ||
===== | ||
|
||
For adding public holidays: | ||
|
||
1. Go to the menu *Leaves > Public Holidays > Public Holidays*. | ||
1. Go to the menu *Calendar > Configuration > Public Holidays > Public | ||
Holidays*. | ||
2. Create your public holidays. | ||
|
||
For using public holidays on leaves: | ||
|
@@ -84,9 +83,10 @@ In Odoo 12.0, \_leave_intervals() returns Intervals which is a list of | |
tuples (start_timestamp, end_timestamp, resource.calendar.leaves | ||
record). Since this module does not operate with | ||
resource.calendar.leaves, it's setting third component of a tuple to a | ||
hr.holidays.public.line record. This may or may not be a problem, yet | ||
since this component is also being set to resource.calendar.attendance | ||
records in \_attendance_intervals(), seems it should be ok. | ||
calendar.public.holiday.line record. This may or may not be a problem, | ||
yet since this component is also being set to | ||
resource.calendar.attendance records in \_attendance_intervals(), seems | ||
it should be ok. | ||
|
||
There are no restrictions to block users from modifying or removing | ||
calendar events linked to public holidays. There's a suggestion to | ||
|
@@ -104,7 +104,7 @@ Bug Tracker | |
Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr-holidays/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/hr-holidays/issues/new?body=module:%20hr_holidays_public%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
`feedback <https://github.com/OCA/hr-holidays/issues/new?body=module:%20hr_holidays_public%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
|
@@ -123,43 +123,44 @@ Authors | |
Contributors | ||
------------ | ||
|
||
- Michael Telahun Makonnen <[email protected]> | ||
- Fekete Mihai <[email protected]> | ||
- Nikolina Todorova <[email protected]> | ||
- Alexis de Lattre <[email protected]> | ||
- Salton Massally (iDT Labs) <[email protected]> | ||
- Ivan Yelizariev <[email protected]> | ||
- Bassirou Ndaw <[email protected]> | ||
- Dhara Solanki <[email protected]> | ||
- `Tecnativa <https://www.tecnativa.com>`__: | ||
- Michael Telahun Makonnen <[email protected]> | ||
- Fekete Mihai <[email protected]> | ||
- Nikolina Todorova <[email protected]> | ||
- Alexis de Lattre <[email protected]> | ||
- Salton Massally (iDT Labs) <[email protected]> | ||
- Ivan Yelizariev <[email protected]> | ||
- Bassirou Ndaw <[email protected]> | ||
- Dhara Solanki <[email protected]> | ||
- `Tecnativa <https://www.tecnativa.com>`__: | ||
|
||
- Pedro M. Baeza | ||
- Pedro M. Baeza | ||
|
||
- `CorporateHub <https://corporatehub.eu/>`__ | ||
- `CorporateHub <https://corporatehub.eu/>`__ | ||
|
||
- Alexey Pelykh <[email protected]> | ||
- Alexey Pelykh <[email protected]> | ||
|
||
- `Camptocamp <https://www.camptocamp.com>`__: | ||
- `Camptocamp <https://www.camptocamp.com>`__: | ||
|
||
- Damien Crier <[email protected]> | ||
- Damien Crier <[email protected]> | ||
|
||
- `Druidoo <https://www.druidoo.io>`__: | ||
- `Druidoo <https://www.druidoo.io>`__: | ||
|
||
- Iván Todorovich <[email protected]> | ||
- Iván Todorovich <[email protected]> | ||
|
||
- `Pesol <https://www.pesol.es>`__: | ||
- `Pesol <https://www.pesol.es>`__: | ||
|
||
- Pedro Evaristo Gonzalez Sanchez <[email protected]> | ||
- Pedro Evaristo Gonzalez Sanchez <[email protected]> | ||
|
||
- `Trobz <https://trobz.com>`__: | ||
- `Trobz <https://trobz.com>`__: | ||
|
||
- Thao Le <[email protected]> | ||
- Thao Le <[email protected]> | ||
- Do Anh Duy <[email protected]> | ||
|
||
Other credits | ||
------------- | ||
|
||
The migration of this module from 16.0 to 17.0 was financially supported | ||
by Camptocamp. | ||
The migration of this module from 16.0 to 17.0 and then from 17.0 to | ||
18.0 was financially supported by Camptocamp. | ||
|
||
Maintainers | ||
----------- | ||
|
@@ -174,6 +175,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose | |
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
This module is part of the `OCA/hr-holidays <https://github.com/OCA/hr-holidays/tree/17.0/hr_holidays_public>`_ project on GitHub. | ||
This module is part of the `OCA/hr-holidays <https://github.com/OCA/hr-holidays/tree/18.0/hr_holidays_public>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from . import models | ||
from . import wizards |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.