← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 681705] Re: can't compute scheduling in project long term

 

Hello Numerigraphe,

I have checked with latest updated code (Addons Revision : 4000, Server
Revision: 3102), Everything is working fine. would you please update the
code, check again and notify us?

Thanks.


** Changed in: openobject-addons
       Status: Fix Released => Invalid

-- 
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/681705

Title:
  can't compute scheduling in project long term

Status in OpenObject Addons Modules:
  Invalid

Bug description:
  In project_long_term (trunk)

go to Compute (from Project / Scheduling  / Compute  phase Scheduling) and then click "compute" : bug

Environment Information : 
System : Linux-2.6.31-22-generic-x86_64-with-Ubuntu-9.10-karmic
OS Name : posix
Distributor ID:	Ubuntu
Description:	Ubuntu 9.10
Release:	9.10
Codename:	karmic
Operating System Release : 2.6.31-22-generic
Operating System Version : #68-Ubuntu SMP Tue Oct 26 16:37:17 UTC 2010
Operating System Architecture : 64bit
Operating System Locale : fr_BE.UTF8
Python Version : 2.6.4
OpenERP-Client Version : 6.0.0-rc1-1
Last revision No. & ID :1697 launchpad_translations_on_behalf_of_openerp-20101126044939-ubhtptn1fc4e6fe6
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 596, in dispatch
    res = fn(db, uid, *params)
  File "/home/aline/openerp/trunk/server/bin/osv/osv.py", line 119, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/aline/openerp/trunk/server/bin/osv/osv.py", line 203, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/aline/openerp/trunk/server/bin/osv/osv.py", line 193, 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 59, 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 462, in schedule_phases
    phase_pool.generate_schedule(cr, uid, phase_ids, start_dt, calendar_id, context=context)
  File "/home/aline/openerp/trunk/addons/project_long_term/project_long_term.py", line 326, in generate_schedule
    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 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 "/home/aline/openerp/trunk/addons/project_long_term/project_long_term.py", line 320, in Project
    working_days = resource_pool.compute_working_calendar(cr, uid, calendar_id, context=context)
TypeError: compute_working_calendar() got multiple values for keyword argument 'context'





References