odoo/odoo#153273
Created by fw-bot
Merged
at a0015d1a0ecd673ccbe1fad5d53ee0079c41fc93
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- 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:master-16.0-opw-3550523-project-timesheet-holidays-fix-restore-global-leave-on-refuse-sigo-w0CN-fw
- head
- 1b57e7c1db90ae24639f54c9056edc07b04429a9
- 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