Files
odoo_source/addons
William Braeckman 4f35751bb0 [FIX] hr_holidays: fix accrual level maximum leaves
A test introduced with https://github.com/odoo/odoo/pull/96432
revealed an issue with the level limits for the accrual plans.

The only applied limit was the one of the current level at the end of
the run, however if for whatever reason multiple levels had to be
processed at once (if the database was shut down for a long period of
time for example), the individual levels would not apply any limit logic
to their behaviour which meant that you could have a different behaviour
between running the cron each day and running it after a long period.

This commit aims to fix that issue by applying the said limit.

OPW-2868297

closes odoo/odoo#97540

X-original-commit: 09fa1020f42d641fc0011d482cdd08aea4f4085a
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-08-05 08:11:45 +02:00
..
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-08-03 13:44:49 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-08-03 13:44:49 +02:00
2022-08-03 13:44:49 +02:00
2022-07-07 13:30:24 +02:00
2022-08-03 13:44:49 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-08-03 13:44:49 +02:00
2022-08-03 13:44:49 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00