From 5477d0de864d9919dc8578a8b3bea172a27a1618 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Fri, 2 Jul 2010 19:45:50 +0530 Subject: [IMP] clean project_* code (ARA) bzr revid: mra@mra-laptop-20100702141550-05xl1o45ophjl23t --- addons/project_long_term/wizard/project_compute_tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/project_long_term/wizard/project_compute_tasks.py') diff --git a/addons/project_long_term/wizard/project_compute_tasks.py b/addons/project_long_term/wizard/project_compute_tasks.py index bd569abf90e..f7f1c9dc613 100644 --- a/addons/project_long_term/wizard/project_compute_tasks.py +++ b/addons/project_long_term/wizard/project_compute_tasks.py @@ -69,7 +69,7 @@ class project_compute_tasks(osv.osv_memory): resource_id = resource_obj.search(cr, uid, [('user_id', '=', user.id)], context=context) if resource_id: # resource = resource_obj.browse(cr, uid, resource_id, context=context)[0] - resource = resource_obj.read(cr, uid, resource_id, ['calendar_id','time_efficiency'], context=context)[0] + resource = resource_obj.read(cr, uid, resource_id, ['calendar_id', 'time_efficiency'], context=context)[0] if resource.get('calendar_id', False): leaves = wkcal.compute_leaves(cr, uid, calendar_id , resource_id[0], resource['calendar_id'] and resource['calendar_id'][0] or False) time_efficiency = resource.get('time_efficiency') @@ -126,7 +126,7 @@ class project_compute_tasks(osv.osv_memory): s_date = t.start.to_datetime() e_date = t.end.to_datetime() if loop_no == 0: - project_obj.write(cr, uid, [project_id], {'date' : e_date}, context=context) + project_obj.write(cr, uid, [project_id], {'date': e_date}, context=context) else: ctx = context.copy() ctx.update({'scheduler': True}) -- cgit v1.2.3