summaryrefslogtreecommitdiff
path: root/addons/project_long_term/wizard/project_compute_phases.py
diff options
context:
space:
mode:
authorUjjvala Collins (OpenERP) <uco@tinyerp.com>2011-03-21 18:36:45 +0530
committerUjjvala Collins (OpenERP) <uco@tinyerp.com>2011-03-21 18:36:45 +0530
commit8429d1fe580a6d4053d210fae08082a9794ae60e (patch)
treecb5e6819187ba754313660f72ddfccacc5bd1231 /addons/project_long_term/wizard/project_compute_phases.py
parent550f4be14ee30c1b887f65e8484e47636bfa650a (diff)
[FIX] project_long_term: Corrected Resource not found error. Corrected error when switching the views on project phases.
bzr revid: uco@tinyerp.com-20110321130645-ey1i0ra2qpkzlfwu
Diffstat (limited to 'addons/project_long_term/wizard/project_compute_phases.py')
-rw-r--r--addons/project_long_term/wizard/project_compute_phases.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/project_long_term/wizard/project_compute_phases.py b/addons/project_long_term/wizard/project_compute_phases.py
index 8e41baa9be7..2fc1aa69f60 100644
--- a/addons/project_long_term/wizard/project_compute_phases.py
+++ b/addons/project_long_term/wizard/project_compute_phases.py
@@ -69,7 +69,7 @@ class project_compute_phases(osv.osv_memory):
id = mod_obj.read(cr, uid, [result], ['res_id'])[0]['res_id']
result = act_obj.read(cr, uid, [id], context=context)[0]
result['target'] = 'current'
- result['context'] = {"search_default_project_id":data['project_id'], "default_project_id":data['project_id'], "search_default_responsible_id":uid, "search_default_current": 1}
+ result['context'] = {"search_default_project_id":data['project_id'][0], "default_project_id":data['project_id'][0], "search_default_responsible_id":uid, "search_default_current": 1}
return result
project_compute_phases()