summaryrefslogtreecommitdiff
path: root/addons/project_long_term/wizard/project_compute_phases.py
diff options
context:
space:
mode:
authorHarry (OpenERP) <hmo@tinyerp.com>2010-12-30 17:20:35 +0530
committerHarry (OpenERP) <hmo@tinyerp.com>2010-12-30 17:20:35 +0530
commite037fbcc31edafb815b198964b9b6d32b9814231 (patch)
treefd034d2b4c3d052837c5d843d01d28465851abb9 /addons/project_long_term/wizard/project_compute_phases.py
parent6ceba1d554c1fa5acae8cacdb8340f405a55733a (diff)
[FIX] project_long_term: open gatt view after scheduling phase and task
bzr revid: hmo@tinyerp.com-20101230115035-vaempl46l5drf809
Diffstat (limited to 'addons/project_long_term/wizard/project_compute_phases.py')
-rw-r--r--addons/project_long_term/wizard/project_compute_phases.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/project_long_term/wizard/project_compute_phases.py b/addons/project_long_term/wizard/project_compute_phases.py
index 351297384fd..c07f1ae81be 100644
--- a/addons/project_long_term/wizard/project_compute_phases.py
+++ b/addons/project_long_term/wizard/project_compute_phases.py
@@ -65,10 +65,11 @@ class project_compute_phases(osv.osv_memory):
context = {}
mod_obj = self.pool.get('ir.model.data')
act_obj = self.pool.get('ir.actions.act_window')
- result = mod_obj._get_id(cr, uid, 'project_long_term', 'act_project_phase_list')
+ result = mod_obj._get_id(cr, uid, 'project_long_term', 'act_project_phase')
id = mod_obj.read(cr, uid, [result], ['res_id'])[0]['res_id']
result = act_obj.read(cr, uid, [id], context=context)[0]
- result['context'] = {"search_default_project_id":data['project_id'], "search_default_responsible_id":uid, "search_default_current": 1}
+ 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}
return result
project_compute_phases()