summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier ALT <xal@openerp.com>2013-12-20 10:18:23 +0100
committerXavier ALT <xal@openerp.com>2013-12-20 10:18:23 +0100
commit73dfa69e34feef8629ece89ea74ad82eb42b3c5d (patch)
tree3cdfd4f07f1649683c8d1e005d02687aef6088eb
parent6e71e067cae97ca04e735829c593fe0c18be4b79 (diff)
[FIX] project: fix task progress not correctly updated when reopening a task
bzr revid: xal@openerp.com-20131220091823-o9uvvlo6hdh4xukw
-rw-r--r--addons/project/project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/project/project.py b/addons/project/project.py
index 7f56b573ebb..8487006f8b6 100644
--- a/addons/project/project.py
+++ b/addons/project/project.py
@@ -808,7 +808,7 @@ class task(base_stage, osv.osv):
}),
'progress': fields.function(_hours_get, string='Progress (%)', multi='hours', group_operator="avg", help="If the task has a progress of 99.99% you should close the task if it's finished or reevaluate the time",
store = {
- 'project.task': (lambda self, cr, uid, ids, c={}: ids, ['work_ids', 'remaining_hours', 'planned_hours','state'], 10),
+ 'project.task': (lambda self, cr, uid, ids, c={}: ids, ['work_ids', 'remaining_hours', 'planned_hours', 'state', 'stage_id'], 10),
'project.task.work': (_get_task, ['hours'], 10),
}),
'delay_hours': fields.function(_hours_get, string='Delay Hours', multi='hours', help="Computed as difference between planned hours by the project manager and the total hours of the task.",