odoo/odoo#152344
Created by fw-bot
Merged
at 403b84dc03e5d7b454116ad7fca51a6908b0c048
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.2-16.0-opw-3550523-project-timesheet-holidays-fix-restore-global-leave-on-refuse-sigo-oe2z-fw
- head
- dd8f304ec39437deb4b7db571f25b411f7b22d43
- 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