summaryrefslogtreecommitdiff
path: root/addons/project_long_term/wizard/project_compute_tasks.py
diff options
context:
space:
mode:
authorSbh (OpenERP) <sbh@tinyerp.com>2010-12-31 10:29:26 +0530
committerSbh (OpenERP) <sbh@tinyerp.com>2010-12-31 10:29:26 +0530
commita329a57bdde3ca4006a1fea853c2cde49b90aa40 (patch)
tree7ca3a5b3ff097185d5e275a195012c2df1141941 /addons/project_long_term/wizard/project_compute_tasks.py
parentacf9c6417981c09f7a7f12fe5423705c542e623f (diff)
parentf8c4b4e72ffea7448648cb1b5e4e5576c9cfa970 (diff)
[MERGE] Merge with lp:openobject-addons
bzr revid: sbh@tinyerp.com-20101230131110-8l42t3b4hituf7aj bzr revid: sbh@tinyerp.com-20101231045926-gqkspd1jgoglv2qj
Diffstat (limited to 'addons/project_long_term/wizard/project_compute_tasks.py')
-rw-r--r--addons/project_long_term/wizard/project_compute_tasks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/project_long_term/wizard/project_compute_tasks.py b/addons/project_long_term/wizard/project_compute_tasks.py
index 0d5fa22e6a8..658350a27d2 100644
--- a/addons/project_long_term/wizard/project_compute_tasks.py
+++ b/addons/project_long_term/wizard/project_compute_tasks.py
@@ -50,13 +50,13 @@ class project_compute_tasks(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', 'action_view_task')
+ result = mod_obj._get_id(cr, uid, 'project_long_term', 'act_resouce_allocation')
id = mod_obj.read(cr, uid, [result], ['res_id'])[0]['res_id']
result = {}
if not id:
return result
result = act_obj.read(cr, uid, [id], context=context)[0]
- result['context'] = {"search_default_project_id":data['project_id'], "search_default_user_id":uid, "search_default_current": 1}
+ result['target'] = 'current'
return result
project_compute_tasks()