diff options
| author | Bhumika (OpenERP) <sbh@tinyerp.com> | 2011-03-25 10:34:26 +0530 |
|---|---|---|
| committer | Bhumika (OpenERP) <sbh@tinyerp.com> | 2011-03-25 10:34:26 +0530 |
| commit | 47bbc45a8a8d98daaa9bab2f452e66600af5f6eb (patch) | |
| tree | 45864649936470f5de47d1883c11fd1bcc525dd8 /addons/project_long_term | |
| parent | 1efe77ab35dc9de2d53e90550e6039c50cab5876 (diff) | |
| parent | dea0358cee4c9380c8b47a85d6d7d8884825580d (diff) | |
[MERGE]
bzr revid: sbh@tinyerp.com-20110325050426-4j56zhlu7dxfr82n
Diffstat (limited to 'addons/project_long_term')
| -rw-r--r-- | addons/project_long_term/wizard/project_compute_phases.py | 3 |
1 files changed, 2 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..7e84f0681cc 100644 --- a/addons/project_long_term/wizard/project_compute_phases.py +++ b/addons/project_long_term/wizard/project_compute_phases.py @@ -69,7 +69,8 @@ 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} + project_id = data.get('project_id') and data.get('project_id')[0] or False + result['context'] = {"search_default_project_id":project_id, "default_project_id":project_id, "search_default_responsible_id":uid, "search_default_current": 1} return result project_compute_phases() |
