40 lines
1.7 KiB
ReStructuredText
40 lines
1.7 KiB
ReStructuredText
HR Holidays Usability
|
|
=====================
|
|
|
|
This module adds what I consider the minimum usability level for the holiday management module in Odoo:
|
|
|
|
* By default, if you only use the official *hr_holidays* module, there the number of days is not automatically computed from the start date and end date. This module fixes it : it counts the number of days following a computation method that is defined on the object hr.holiday.status. It also replaces the datetime field for start/end dates by a date field plus a selection field to indicated morning/noon/evening.
|
|
|
|
* It depends on the OCA module *hr_public_holidays* to easily define the bank holidays per country. It takes those bank holidays into account when counting the number of days.
|
|
|
|
* It sends an email to the manager when the employee submits a holiday requests (with the employee in Cc) and it sends an email to the employee (with the manager in Cc) when the holiday request is validated/refused.
|
|
|
|
Installation
|
|
============
|
|
|
|
This module requires a patch on the official hr_holidays module:
|
|
in addons/hr_holidays/hr_holidays.py, in the method holidays_validate(), remplace
|
|
|
|
.. code::
|
|
|
|
if record.holiday_type == 'employee' and record.type == 'remove':
|
|
|
|
by
|
|
|
|
.. code::
|
|
|
|
if record.holiday_type == 'employee' and record.type == 'remove' and record.date_from and record.date_to:
|
|
|
|
Known issues / Roadmap
|
|
======================
|
|
|
|
* Beware that this module works for old version of Odoo v7, not with up-to-date versions, because my customer uses an old version. If you use an up-to-date version, you need to adapt the inherit of hr_holidays.edit_holiday_new (required property moved to attrs, and probably other changes)
|
|
|
|
Credits
|
|
=======
|
|
|
|
Contributors
|
|
------------
|
|
|
|
* Alexis de Lattre <alexis.delattre@akretion.com>
|