cannot schedule only one project

Bug #701070 reported by Aline (OpenERP)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
High
OpenERP R&D Addons Team 1

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

Related branches

Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Medium
importance: Medium → High
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
Jigar A. (ifixthat)
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Jigar A. (ifixthat) wrote :

Hello,

         This we have fixed this bug and committed to the lp:~openerp-dev/openobject-addons/trunk-dev-addons1-extra, and this bug comes due to invalid resource allocation to the Project and Phases, so we have added proper message.

Thank You.

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
status: Fix Committed → Fix Released
Changed in openobject-addons:
milestone: none → 6.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.