Files
odoo_source/addons/hr_holidays/models
Dossogne Bertrand 1e27f665d4 [FIX] hr_holidays: fix nextcall on create
To reproduce the bug:
- create an accrual allocation with the seniority plan
- set the start date way in the past like in 2000
- validate the allocation
- go on the dashboard, the accrued amount should be broken
when setting the balance on a future date
- additional days accrued if the cron is run

Fix:
nextcall being unset upon creation by default, the allocation
would consider the start of the second level as the nextcall if
the allocation is created in the past. This commits sets nextcall
to a correct value if the lastcall is set in the past upon creation.

closes odoo/odoo#141006

Signed-off-by: Bertrand Dossogne (bedo) <bedo@odoo.com>
2023-11-21 09:21:13 +00:00
..