c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #07742
[Bug 681705] Re: can't compute scheduling in project long term
Yet another problem when clicking the button "schedule tasks" in the
phase form:
Environment Information :
System : Linux-2.6.32-26-generic-x86_64-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-26-generic
Operating System Version : #48-Ubuntu SMP Wed Nov 24 10:14:11 UTC 2010
Operating System Architecture : 64bit
Operating System Locale : fr_FR.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0.0-rc1-1
Last revision No. & ID :3999 launchpad_translations_on_behalf_of_openerp-20101212044547-xwyztuk2luf60dlb
Traceback (most recent call last):
File "/home/ls/Projets/OpenERP/server/trunk/bin/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/home/ls/Projets/OpenERP/server/trunk/bin/service/web_services.py", line 598, in dispatch
res = fn(db, uid, *params)
File "/home/ls/Projets/OpenERP/server/trunk/bin/osv/osv.py", line 119, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/ls/Projets/OpenERP/server/trunk/bin/osv/osv.py", line 203, in execute
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/ls/Projets/OpenERP/server/trunk/bin/osv/osv.py", line 193, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/ls/Projets/OpenERP/addons/trunk/project_long_term/wizard/project_schedule_tasks.py", line 38, in default_get
self.compute_date(cr, uid, context=context)
File "/home/ls/Projets/OpenERP/addons/trunk/project_long_term/wizard/project_schedule_tasks.py", line 50, in compute_date
return phase_pool.schedule_tasks(cr, uid, [context['active_id']], context=context)
File "/home/ls/Projets/OpenERP/addons/trunk/project_long_term/project_long_term.py", line 371, in schedule_tasks
resources_list = self.generate_resources(cr, uid, ids, context=context)
File "/home/ls/Projets/OpenERP/addons/trunk/project_long_term/project_long_term.py", line 287, in generate_resources
resource_objs = resource_pool.generate_resources(cr, uid, user_ids, calendar_id, context=context)
File "/home/ls/Projets/OpenERP/addons/trunk/resource/resource.py", line 257, in generate_resources
for user in user_pool.browse(cr, uid, user_ids, context=context):
File "/home/ls/Projets/OpenERP/server/trunk/bin/osv/orm.py", line 531, in browse
return self._list_class([browse_record(cr, uid, id, self, cache, context=context, list_class=self._list_class, fields_process=fields_process) for id in select], context=context)
File "/home/ls/Projets/OpenERP/server/trunk/bin/osv/orm.py", line 154, in __init__
raise BrowseRecordError(_('Wrong ID for the browse record, got %r, expected an integer.') % (id,))
BrowseRecordError: Wrong ID for the browse record, got False, expected an integer.
--
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:
New
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