← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 701070] Re: cannot schedule only one project

 

** Changed in: openobject-addons
    Milestone: None => 6.0

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/701070

Title:
  cannot schedule only one project

Status in OpenObject Addons Modules:
  Fix Released

Bug description:
  trunk, project long term

  create 2 projects, then, go to scheduling, compute phase scheduling.
  then, choose the option "Compute a single project" and choose one
  project. then, click on compute -> BUG

  Last revision No. & ID :1762 launchpad_translations_on_behalf_of_openerp-20110109045113-me77jjxp50gdjmub
  Traceback (most recent call last):
    File "/home/aline/openerp/trunk/server/bin/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/home/aline/openerp/trunk/server/bin/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/home/aline/openerp/trunk/server/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/aline/openerp/trunk/server/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/aline/openerp/trunk/server/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/aline/openerp/trunk/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/aline/openerp/trunk/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/aline/openerp/trunk/addons/project_long_term/project_long_term.py", line 520, in schedule_phases
      project = Task.BalancedProject(Project)
    File "/home/aline/openerp/trunk/addons/resource/faces/task.py", line 3503, in __init__
      _AllocationPoject.__init__(self, top_task, scenario, id)
    File "/home/aline/openerp/trunk/addons/resource/faces/task.py", line 3378, in __init__
      self._generate()
    File "/home/aline/openerp/trunk/addons/resource/faces/task.py", line 2412, in _generate
      task._compile(new_deferred, do_raise)
    File "/home/aline/openerp/trunk/addons/resource/faces/task.py", line 2448, in _compile
      c._compile(deferred, do_raise)
    File "/home/aline/openerp/trunk/addons/resource/faces/task.py", line 2442, in _compile
      self.__compile_function(deferred, do_raise, _MeProxy(self))
    File "/home/aline/openerp/trunk/addons/resource/faces/task.py", line 2528, in __compile_function
      self._function()
    File "<string>", line 17, in Phase_4
  NameError: global name 'Resource_2' is not defined





References