Files
odoo_source/addons/hr_holidays
Dossogne Bertrand c70278cade [FIX] hr_holidays: Fix smartbutton + warning
Fix 1:

Before this commit, the smart button on the employee would
display `x/y` Time Off, indicating remaining leaves over max leaves.
However, while `y` was correctly taking into account current
allocations only, `x` didn't, resulting in incoherent values.

Reproduce the issue:
- For an employee, create an expired allocation and validate it of x days;
- Create an additional allocation which is still valid today of y days
and validate it as well;
- Go on the employee form view;
- Time Off smart button display (x+y)/y instead of y/y

Fix 2:

Before this commit, there was no way to track error inducing leaves
that were created through a bug or that were already created in the
database prior to the changes brought in version 17.0.
This commit adds a new property in the leave data indicating the id
and the start date of the leave that is causing the discrepancies
in the database and displays a warning on the dashboard if
there are some error inducing leaves.

closes odoo/odoo#151288

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2024-01-29 23:16:14 +00:00
..
2023-12-07 22:48:39 +00:00