diff options
| author | Akash Bhavsar <abh@odoo.com> | 2017-12-29 14:56:25 +0530 |
|---|---|---|
| committer | jem-odoo <jem@openerp.com> | 2018-01-17 09:34:18 +0100 |
| commit | 2ac5888a8d1f8b2bac89314be1e846106c077cca (patch) | |
| tree | 4ba0d293f628f292896ba7e0a2e21ecade250225 /addons/project/report | |
| parent | 66a0e5a541f7311bf7bb05278654b329ae485ea0 (diff) | |
[IMP] hr_timesheet: hour fields calculation
This commit aims to improve duration field calculation
with subtask. So this commit :
- provides `subtask_planned_hours`as the total of planned our from
children tasks
- removes useless/unclear fields : delay_hours and total_hours
- makes progress computation independent from the stage (before,
progress
of task in fold stage was 100%)
- split the `hour_get` compute method into smaller ones in order to
improve
performances and code readability.
- makes 'progress' and subtask effective hours not including allocated
hours
Task: 38498
Diffstat (limited to 'addons/project/report')
| -rw-r--r-- | addons/project/report/project_report_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/project/report/project_report_views.xml b/addons/project/report/project_report_views.xml index e7ebe788ca6..f87e3f5c4d5 100644 --- a/addons/project/report/project_report_views.xml +++ b/addons/project/report/project_report_views.xml @@ -34,7 +34,7 @@ <field name="name">Workload</field> <field name="model_id">report.project.task.user</field> <field name="user_id" eval="False"/> - <field name="context">{'group_by': ['project_id'], 'measures': ['total_hours','planned_hours','remaining_hours']}</field> + <field name="context">{'group_by': ['project_id'], 'measures': ['planned_hours','remaining_hours']}</field> </record> <record id="filter_task_report_responsible" model="ir.filters"> <field name="name">By Responsible</field> |
