summaryrefslogtreecommitdiff
path: root/addons/project_long_term/project_long_term.py
diff options
context:
space:
mode:
authorSanjay Gohel (Open ERP) <sgo@tinyerp.com>2012-05-08 14:51:43 +0530
committerSanjay Gohel (Open ERP) <sgo@tinyerp.com>2012-05-08 14:51:43 +0530
commita6a7276d890488085bc2eec46f57e44425df3a4b (patch)
treeb09e8d2953ec8de970802645d39a6e940b106165 /addons/project_long_term/project_long_term.py
parent38fd7fa19df5d752c05eb21fad9f07daccca4395 (diff)
[IMP]remove open_model method from project related module and add action as per required
bzr revid: sgo@tinyerp.com-20120508092143-ah3siaudwp7jixc8
Diffstat (limited to 'addons/project_long_term/project_long_term.py')
-rw-r--r--addons/project_long_term/project_long_term.py23
1 files changed, 1 insertions, 22 deletions
diff --git a/addons/project_long_term/project_long_term.py b/addons/project_long_term/project_long_term.py
index 85e821703fc..0e7fcee25fb 100644
--- a/addons/project_long_term/project_long_term.py
+++ b/addons/project_long_term/project_long_term.py
@@ -234,28 +234,7 @@ class project(osv.osv):
_defaults = {
'use_phases' : True,
}
- def open_phase(self, cr, uid, ids, context=None):
- #Open the View for the Tasks for the project
- """
- This opens Tasks views
- @return :Dictionary value for task view
- """
- if context is None:
- context = {}
- if ids:
- context = dict(context, search_default_project_id=ids[0])
- return {
- 'name': _('Phase'),
- 'view_type': 'form',
- 'view_mode': 'tree,calendar,form',
- 'res_model': 'project.phase',
- 'view_id': False,
- 'domain':[('project_id','in',ids)],
- 'context': context,
- 'type': 'ir.actions.act_window',
- 'nodestroy': True
- }
-
+
def schedule_phases(self, cr, uid, ids, context=None):
context = context or {}
if type(ids) in (long, int,):