← Back to team overview

openerp-india team mailing list archive

[Bug 1107005] Re: [7.0] With project_long_term, error when planning inter-project tasks

 

Sure, the error from the log is the following:

2013-01-28 08:59:38,622 4536 ERROR sagi openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 123, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 179, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp7/addons/audittrail/audittrail.py", line 514, in execute_cr
    return fct_src(cr, uid, model, method, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 166, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp7/addons/project_long_term/wizard/project_compute_tasks.py", line 42, in compute_date
    project_pool.schedule_tasks(cr, uid, [project_id], context=context)
  File "/opt/openerp7/addons/project/project.py", line 504, in schedule_tasks
    projects_gantt = Task.BalancedProject(local_dict['Project'])
  File "/opt/openerp7/addons/resource/faces/task.py", line 3504, in __init__
    _AllocationPoject.__init__(self, top_task, scenario, id)
  File "/opt/openerp7/addons/resource/faces/task.py", line 3379, in __init__
    self._generate()
  File "/opt/openerp7/addons/resource/faces/task.py", line 2413, in _generate
    task._compile(new_deferred, do_raise)
  File "/opt/openerp7/addons/resource/faces/task.py", line 2443, in _compile
    self.__compile_function(deferred, do_raise, _MeProxy(self))
  File "/opt/openerp7/addons/resource/faces/task.py", line 2518, in __compile_function
    self._function()
  File "<string>", line 17, in Task_5
  File "/opt/openerp7/addons/resource/faces/task.py", line 485, in __getattr__
    new = getattr(self._task, name)
  File "/opt/openerp7/addons/resource/faces/task.py", line 2004, in __getattr__
    raise exception
AttributeError: 'Task_1' is not a valid attribute of 'root.Project_3'.
2013-01-28 08:59:38,675 4536 ERROR sagi openerp.netsvc: 'Task_1' is not a valid attribute of 'root.Project_3'.
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 289, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 614, in dispatch
    res = fn(db, uid, *params)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 169, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 123, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 179, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp7/addons/audittrail/audittrail.py", line 514, in execute_cr
    return fct_src(cr, uid, model, method, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 166, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp7/addons/project_long_term/wizard/project_compute_tasks.py", line 42, in compute_date
    project_pool.schedule_tasks(cr, uid, [project_id], context=context)
  File "/opt/openerp7/addons/project/project.py", line 504, in schedule_tasks
    projects_gantt = Task.BalancedProject(local_dict['Project'])
  File "/opt/openerp7/addons/resource/faces/task.py", line 3504, in __init__
    _AllocationPoject.__init__(self, top_task, scenario, id)
  File "/opt/openerp7/addons/resource/faces/task.py", line 3379, in __init__
    self._generate()
  File "/opt/openerp7/addons/resource/faces/task.py", line 2413, in _generate
    task._compile(new_deferred, do_raise)
  File "/opt/openerp7/addons/resource/faces/task.py", line 2443, in _compile
    self.__compile_function(deferred, do_raise, _MeProxy(self))
  File "/opt/openerp7/addons/resource/faces/task.py", line 2518, in __compile_function
    self._function()
  File "<string>", line 17, in Task_5
  File "/opt/openerp7/addons/resource/faces/task.py", line 485, in __getattr__
    new = getattr(self._task, name)
  File "/opt/openerp7/addons/resource/faces/task.py", line 2004, in __getattr__
    raise exception
AttributeError: 'Task_1' is not a valid attribute of 'root.Project_3'.

** Changed in: openobject-addons
       Status: Incomplete => 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/1107005

Title:
  [7.0] With project_long_term, error when planning inter-project tasks

Status in OpenERP Addons (modules):
  New

Bug description:
  With OpenERP v7.0.

  1) Install module project_long_term.
  2) Go to "Project / Project / Project".
  3) Create new project called "Pr001". In the "Team" tab, click "Add" and select any Project Member.
  4) Create new project called "Pr002". In the "Team" tab, click "Add" and select any Project Member.
  5) Go to "Project / Project / Tasks".
  6) Create a new task called "Tsk001 Pr001". Select project "Pr001" for the project.
  7) Create a new task called "Tsk001 Pr002". Select project "Pr002" for the project.
  8) Continue editing "Tsk001 Pr002", go to "Delegation" tab, on "Parent Tasks" click "Add". Select the task "Tsk001 Pr001".
  9) Click on "Project / Scheduling / Schedule Tasks" menu item.
  10) In "Project" select "Pr002".
  11) An unhandled exception occur.

  I think that a possible solution would be that only tasks in the same
  project can be chosen for "Parent Tasks".

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


References