[FIX]: project_long_term: Fixed pylint warnings
authorrpa (Open ERP) <rpa@tinyerp.com>
Tue, 28 Sep 2010 05:07:11 +0000 (10:37 +0530)
committerrpa (Open ERP) <rpa@tinyerp.com>
Tue, 28 Sep 2010 05:07:11 +0000 (10:37 +0530)
bzr revid: rpa@tinyerp.com-20100928050711-x7czhl7jwku3s8kl

addons/project_long_term/project_long_term.py

index a535015..dba58e1 100644 (file)
@@ -277,7 +277,6 @@ class project_phase(osv.osv):
             context = {}
         resource_pool = self.pool.get('resource.resource')
         uom_pool = self.pool.get('product.uom')
-        phase_resource = False
         if context is None:
            context = {}
         default_uom_id = self._get_default_uom_id(cr, uid)
@@ -290,9 +289,6 @@ class project_phase(osv.osv):
             duration = str(avg_hours) + 'H'
             # Create a new project for each phase
             def Project():
-                start = start_date
-                minimum_time_unit = 1
-                resource = phase_resource_obj
                 # If project has working calendar then that
                 # else the default one would be considered
                 if calendar_id: