← Back to team overview

openerp-india team mailing list archive

[Bug 1104287] Re: [trunk/7.0]Error Scheduling Projects (long_term_planning)

 

I have the same problem.

After some more testing I have seen that this error occurs if there are
task within a project phase the have dependencies (constraints) to  a
task that resides in another project phase.

In other words it means as long as the tasks have only dependencies with
tasks in the same project phase the "schedule phases" function works.

By the way the German translation of "Delegated tasks -> Erledigte
Aufgaben" seems to be wrong in this context and would be better
"Delegated tasks -> Delegierter Task". In case the translation is ok
then there is bug in the logic of this "delegation function".

-- 
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:
  [trunk/7.0]Error Scheduling Projects (long_term_planning)

Status in OpenERP Addons (modules):
  Confirmed

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


References