Skip to content
Snippets Groups Projects
Commit 35418411 authored by Ujjvala Collins's avatar Ujjvala Collins
Browse files

[FIX] project_long_term: Small Fix.

bzr revid: uco@tinyerp.com-20110321131606-swxvwxe2hl1ekd8e
parent 8429d1fe
No related branches found
No related tags found
No related merge requests found
......@@ -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'][0], "default_project_id":data['project_id'][0], "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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment