diff options
| author | Rvo (Open ERP) <rvo@tinyerp.co.in> | 2010-02-26 17:56:17 +0530 |
|---|---|---|
| committer | Rvo (Open ERP) <rvo@tinyerp.co.in> | 2010-02-26 17:56:17 +0530 |
| commit | 1adcb50ea377a8847e50b4cd6c6c85e6ed8a67c8 (patch) | |
| tree | d7032fb0751081882e5976738358bce51ef3a7ff /addons/project/wizard | |
| parent | 106d56a63fbde77c0b60126ab08d584f63dc2457 (diff) | |
[IMP]:improved the date start working for phase,tasks scheduling
bzr revid: rvo@tinyerp.co.in-20100226122617-l6jvjmckgjqf3chg
Diffstat (limited to 'addons/project/wizard')
| -rw-r--r-- | addons/project/wizard/compute_tasks_date.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/project/wizard/compute_tasks_date.py b/addons/project/wizard/compute_tasks_date.py index 558a6116af0..7cf1ad73bbb 100644 --- a/addons/project/wizard/compute_tasks_date.py +++ b/addons/project/wizard/compute_tasks_date.py @@ -58,7 +58,10 @@ class wizard_compute_tasks(wizard.interface): task_ids.sort() task_obj = task_pool.browse(cr,uid,task_ids) calendar_id = project.resource_calendar_id.id - date_start = datetime.datetime.strftime(datetime.datetime.strptime(project.date_start,"%Y-%m-%d"),"%Y-%m-%d %H:%M") + start_date = project.date_start + if not project.date_start: + start_date = datetime.datetime.now().strftime("%Y-%m-%d") + date_start = datetime.datetime.strftime(datetime.datetime.strptime(start_date,"%Y-%m-%d"),"%Y-%m-%d %H:%M") # To create resources which are the Project Members resource_objs = [] |
