diff options
| author | Lucas Lefèvre <lul@odoo.com> | 2019-08-02 15:02:39 +0200 |
|---|---|---|
| committer | Lucas Lefèvre <lul@odoo.com> | 2019-11-22 16:58:38 +0100 |
| commit | 8f3a5068ca6c5e65fb97b968701c5c883eb5c132 (patch) | |
| tree | a0f299484a8bbec5bf338456c5c3caa93492ddbd /addons/hr_holidays/tests/test_automatic_leave_dates.py | |
| parent | d813873f6c841feea361a9e4f761a9324ff7c956 (diff) | |
[IMP] hr_holidays: Add specific approval for allocations
Purpose
=======
We want to allow different approvals for allocations and leaves of a same type.
e.g. In case of compensation days, a manager would approve the
allocation request, but would later not approve leave requests.
Specification
=============
Allocation modes
----------------
No change here except renames.
1. No limit (employee doesn't need an allocation to request a leave)
2. Allow employee requests
3. Fixed by Time Off Officer
Allocation approval
-------------------
A radio field to choose the approval mechanism
appears if the employee is allowed to request an allocation.
The following approval modes are possible:
1. Time Off Officer
2. Employee's Time Off Manager (leave_responsible_id)
3. Employee's Time Off Manager and Time Off Officer
These options are the same as leave approval options
(except the missing "No Validation").
If option 1 or 2 is selected, a o2m field should
allow to select which Time Off Officer is responsible
for approving those allocations.
Allocation approval policy is the same as the leave approval policy.
Task id: 1936742
Access rights based on task 1950998
Diffstat (limited to 'addons/hr_holidays/tests/test_automatic_leave_dates.py')
| -rw-r--r-- | addons/hr_holidays/tests/test_automatic_leave_dates.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/hr_holidays/tests/test_automatic_leave_dates.py b/addons/hr_holidays/tests/test_automatic_leave_dates.py index d3f76ee547d..01a7d0b8183 100644 --- a/addons/hr_holidays/tests/test_automatic_leave_dates.py +++ b/addons/hr_holidays/tests/test_automatic_leave_dates.py @@ -1,12 +1,11 @@ # -*- coding: utf-8 -*- from datetime import date, datetime -from odoo.tests.common import Form, tagged +from odoo.tests.common import Form from odoo.addons.hr_holidays.tests.common import TestHrHolidaysCommon -@tagged('prout') class TestAutomaticLeaveDates(TestHrHolidaysCommon): def setUp(self): super(TestAutomaticLeaveDates, self).setUp() |
