diff options
| author | mra (Open ERP) <mra@tinyerp.com> | 2010-03-16 15:00:14 +0530 |
|---|---|---|
| committer | mra (Open ERP) <mra@tinyerp.com> | 2010-03-16 15:00:14 +0530 |
| commit | 4f7ece5e75b7cb0dbd730fbb9f4a5119c5d7d7b2 (patch) | |
| tree | 64ff310fafe52ef5e2634d7e6d95a8cf3bc94411 /addons/project_long_term/wizard/compute_phases_date.py | |
| parent | f256181d97f7cfda68797d83226993a9460ce69f (diff) | |
[IMP] project_long_term: improve the code
bzr revid: mra@tinyerp.com-20100316093014-m1t1z0nb8j05s8x9
Diffstat (limited to 'addons/project_long_term/wizard/compute_phases_date.py')
| -rw-r--r-- | addons/project_long_term/wizard/compute_phases_date.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/project_long_term/wizard/compute_phases_date.py b/addons/project_long_term/wizard/compute_phases_date.py index f684871e636..3893628bacf 100644 --- a/addons/project_long_term/wizard/compute_phases_date.py +++ b/addons/project_long_term/wizard/compute_phases_date.py @@ -135,8 +135,8 @@ class wizard_compute_phases(wizard.interface): ('previous_phase_ids', '=', False) ], context=context) phase_ids.sort() - phase_objs = phase_obj.browse(cr, uid, phase_ids, context=context) - for phase in phase_objs: + phases = phase_obj.browse(cr, uid, phase_ids, context=context) + for phase in phases: start_date = phase.project_id.date_start if not phase.project_id.date_start: start_date = datetime.datetime.now().strftime("%Y-%m-%d") |
