Friday, February 17, 2023
2 changes · master
Resolved issues and error corrections
This update corrects how notification languages are chosen when posting the same comment to multiple records at once. Users should now receive mail notifications in the language tied to the correct record, avoiding mismatched or confusing messages.
Task allocation totals now use employee working hours instead of raw task duration, so short tasks spanning non-working time no longer overstate workload. This gives managers more accurate capacity and planning information in Project and Planning views.
Original PR description
Tasks with a duration under 24 hours have a `allocated_hours` that doesn't take work hours into account Steps to reproduce: 1. Install Project 2. Go to Project > My Tasks and trigger the Gantt view 3. Create a task for Mitchell Admin from 00:00 to 23:00 4. Hover on the task to have its information 5. The task's allocated hours is 23 but it should be 8 hours as we only need to count working hours Solution: Always compute the `allocated hours` using the working intervals Problem: Commit https://github.com/odoo/enterprise/commit/04a15e717775bfe6bac2ba3e117910f7ea52191b introduces the field `allocated_hours` claiming it only takes working hours into account for the calculation but it doesn't use them when the duration is under 24 hours opw-3146078