Friday, February 17, 2023
3 changes · master
Resolved issues and error corrections
This update fixes confirmation dialogs so custom actions can pass information into the confirm step. It makes the web interface easier to extend for specific business workflows without changing the standard behavior for users.
Original PR description
This is usefull for using/extending that class Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
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