odoo/odoo#152367
Created by fw-bot
Merged
at 47b4763ad948686e0e7155b3c0b3d0dc4d970963
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:saas-16.3-16.0-opw-3550523-project-timesheet-holidays-fix-restore-global-leave-on-refuse-sigo-_Y4i-fw
- head
- 8ee57fa9eb0ff945403988e7a08d5a6537c9d8cd
- merged
- 2 years ago by Fun Services, Xavier Bol (xbo)
| odoo/odoo | |
|---|---|
| 16.0 | #151522 |
| saas-16.1 | #152333 |
| saas-16.2 | #152344 |
| saas-16.3 | #152367 |
| saas-16.4 | #153110 |
| 17.0 | #153118 |
| saas-17.1 | #153256 |
| 18.0 | |
| saas-18.2 | |
| saas-18.3 | |
| saas-18.4 | |
| 19.0 | |
| saas-19.1 | |
| saas-19.2 | |
| saas-19.3 | |
| master | #153273 |
[FW][FIX] project_timesheet_holidays: restore public holiday timesheets a…
…fter refusal
Before this commit, if a public holiday was created on dates overlapping an existing validated leave, the timesheet entries for the public holiday would not be created as they already existed for the leave. If the leave was then refused or cancelled, the timesheet records linked to it would be removed and the employee would have missing timesheet entries for the public holiday.
This commit fixes this behavior by recreating the public holiday timesheet records for the affected employees when refusing their leave.
linked to com: #145522
Forward-Port-Of: #151522