From 6a95c9cf3e3f7acc534e9ef7440a30730db2033f Mon Sep 17 00:00:00 2001 From: Julien Legros Date: Thu, 30 Oct 2014 17:58:29 +0100 Subject: [PATCH] [FIX] project_issue: explicit store attribute for the progress function field This is a workaround for an ORM limitation. A stored function field is not updated when it should if the "source" field is also a stored function field --- addons/project_issue/project_issue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project_issue/project_issue.py b/addons/project_issue/project_issue.py index 20a61657e20..efb4e4eff2b 100644 --- a/addons/project_issue/project_issue.py +++ b/addons/project_issue/project_issue.py @@ -306,7 +306,7 @@ class project_issue(base_stage, osv.osv): 'progress': fields.function(_hours_get, string='Progress (%)', multi='hours', group_operator="avg", help="Computed as: Time Spent / Total Time.", store = { 'project.issue': (lambda self, cr, uid, ids, c={}: ids, ['task_id'], 10), - 'project.task': (_get_issue_task, ['progress'], 10), + 'project.task': (_get_issue_task, ['work_ids', 'remaining_hours', 'planned_hours', 'state', 'stage_id'], 10), 'project.task.work': (_get_issue_work, ['hours'], 10), }), }