Files
odoo_source/addons/hr_holidays
Audric Onockx (auon) c811fdc585 [FIX] hr_holidays : allow user to take time off allocated in the future
Steps:
- Install Time Off
- Create Time Off Type T
- Create Time Off Allocation :
	- Time Off Type : T
	- Validity Period : in the future
	- Employee : Demo
- As Demo, create Time Off Request

Issue :
- As a Time Off Type, T is not displayed

Cause :
- This dropdown list calls _compute_leaves, which calls
get_employees_days with no date.
- As a result, this method search Time Off Allocations available today.
- Yet, T doesn't satisfy this condition.

Fix :
- Append date conditions to domain search only when a date is given s
param.

opw-2730416

closes odoo/odoo#83326

X-original-commit: 8db810a7d9039fc3ef870056c1b158981e590cea
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-01-25 14:48:15 +00:00
..
2022-01-12 15:49:12 +00:00
2022-01-20 11:03:01 +00:00