← Back to team overview

openerp-india team mailing list archive

[Bug 1104287] [NEW] Error Scheduling Projects (long_term_planning)

 

Public bug reported:

openerp v7

As described here http://forum.openerp.com/forum/topic30189.html the
problem is as next:

First i created a project (corporate website) with a few tasks and 1
project phase. I give the project phase a resource (Niko) and set 1 task
to the project phase.

Then i want to schedule the tasks and project phase but i get always the
next error, why?

By phase scheduling I get this error:
Traceback (most recent call last):
File "/home/mia/Mia/lib/python2.6/site-packages/openerp-server/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/home/mia/Mia/lib/python2.6/site-packages/openerp-server/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/home/mia/Mia/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/mia/Mia/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/mia/Mia/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/mia/Mia/lib/python2.6/site-packages/openerp-server/addons/project_long_term/wizard/project_compute_phases.py", line 40, in check_selection
return self.compute_date(cr, uid, ids, context=context)
File "/home/mia/Mia/lib/python2.6/site-packages/openerp-server/addons/project_long_term/wizard/project_compute_phases.py", line 57, in compute_date
project_pool.schedule_phases(cr, uid, project_ids, context=context)
File "/home/mia/Mia/lib/python2.6/site-packages/openerp-server/addons/project_long_term/project_long_term.py", line 559, in schedule_phases
temp = eval("phase.Task_%s"%task.id)
File "<string>", line 1, in <module>
File "/home/mia/Mia/lib/python2.6/site-packages/openerp-server/addons/resource/faces/task.py", line 2003, in __getattr__
raise exception
AttributeError: 'Task_239' is not a valid attribute of 'root.Phase_3'

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1104287

Title:
  Error Scheduling Projects (long_term_planning)

Status in OpenERP Addons (modules):
  New

Bug description:
  openerp v7

  As described here http://forum.openerp.com/forum/topic30189.html the
  problem is as next:

  First i created a project (corporate website) with a few tasks and 1
  project phase. I give the project phase a resource (Niko) and set 1
  task to the project phase.

  Then i want to schedule the tasks and project phase but i get always
  the next error, why?

  By phase scheduling I get this error:
  Traceback (most recent call last):
  File "/home/mia/Mia/lib/python2.6/site-packages/openerp-server/netsvc.py", line 489, in dispatch
  result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/mia/Mia/lib/python2.6/site-packages/openerp-server/service/web_services.py", line 599, in dispatch
  res = fn(db, uid, *params)
  File "/home/mia/Mia/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 122, in wrapper
  return f(self, dbname, *args, **kwargs)
  File "/home/mia/Mia/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 176, in execute
  res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/mia/Mia/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 167, in execute_cr
  return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/mia/Mia/lib/python2.6/site-packages/openerp-server/addons/project_long_term/wizard/project_compute_phases.py", line 40, in check_selection
  return self.compute_date(cr, uid, ids, context=context)
  File "/home/mia/Mia/lib/python2.6/site-packages/openerp-server/addons/project_long_term/wizard/project_compute_phases.py", line 57, in compute_date
  project_pool.schedule_phases(cr, uid, project_ids, context=context)
  File "/home/mia/Mia/lib/python2.6/site-packages/openerp-server/addons/project_long_term/project_long_term.py", line 559, in schedule_phases
  temp = eval("phase.Task_%s"%task.id)
  File "<string>", line 1, in <module>
  File "/home/mia/Mia/lib/python2.6/site-packages/openerp-server/addons/resource/faces/task.py", line 2003, in __getattr__
  raise exception
  AttributeError: 'Task_239' is not a valid attribute of 'root.Phase_3'

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1104287/+subscriptions


Follow ups

References