-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] hr_timesheet: display correct remaining hours on project
Steps to reproduce the bug: - Install hr_timesheet module - Create a project - Create task and set planned hours to 2 minutes - Add a new timesheet line for the task with duration of 2 minutes - Create a subtask and set planned hours to 2 minutes - Add a new timesheet line for the sub-task with duration of 2 minutes - Go back to project (kanban view) Issue: Wrong remaining hours displayed on project (00:00 instead of 00:02). Cause: Doing the sum of the remaining hours of all project's tasks while the parent tasks (that are in the project) should include remaining hours of all sub tasks. Solution: Use planned hours (from tasks) minus timesheets unit_amount (from project) to calculate remaining hours. opw-2916546 closes odoo#99444 Signed-off-by: Xavier <xbo@odoo.com>
- Loading branch information
Showing
2 changed files
with
44 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters