openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #14312
[Bug 1032999] Re: projects module: templating/duplicating projects with phases
Hi,
after upgrading the DB from commandline the error disappeared and I could repeat your same steps and get to the same result. This was great. However, after more testing with:
1) 1 project defined
2) 4 stages for the project
Now I am getting this new error:
OpenERP Server Error
Client Traceback (most recent call last):
File "/data/openerp/production/web/6.1/addons/web/common/http.py", line 180, in dispatch
response["result"] = method(controller, self, **self.params)
File "/data/openerp/production/web/6.1/addons/web/controllers/main.py", line 1052, in call_button
action = self.call_common(req, model, method, args, domain_id, context_id)
File "/data/openerp/production/web/6.1/addons/web/controllers/main.py", line 996, in call_common
return self._call_kw(req, model, method, args, {})
File "/data/openerp/production/web/6.1/addons/web/controllers/main.py", line 1010, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/data/openerp/production/web/6.1/addons/web/common/openerplib/main.py", line 250, in proxy
args, kw)
File "/data/openerp/production/web/6.1/addons/web/common/openerplib/main.py", line 117, in proxy
result = self.connector.send(self.service_name, method, *args)
File "/data/openerp/production/web/6.1/addons/web/common/http.py", line 608, in send
raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)
Server Traceback (most recent call last):
File "/data/openerp/production/web/6.1/addons/web/common/http.py", line 593, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/data/openerp/production/server/6.1/openerp/netsvc.py", line 360, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/data/openerp/production/server/6.1/openerp/service/web_services.py", line 586, in dispatch
res = fn(db, uid, *params)
File "/data/openerp/production/server/6.1/openerp/osv/osv.py", line 167, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/data/openerp/production/server/6.1/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/data/openerp/production/server/6.1/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/data/openerp/production/server/6.1/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/data/openerp/production/server/6.1/addons/project_long_term/wizard/project_compute_phases.py", line 39, in check_selection
return self.compute_date(cr, uid, ids, context=context)
File "/data/openerp/production/server/6.1/addons/project_long_term/wizard/project_compute_phases.py", line 55, in compute_date
project_pool.schedule_phases(cr, uid, project_ids, context=context)
File "/data/openerp/production/server/6.1/addons/project_long_term/project_long_term.py", line 232, in schedule_phases
exec result in local_dict
File "<string>", line 5
^
SyntaxError: invalid syntax
This happens again when trying to compute schedule for all projects.
Any idea of what could be wrong?
Thanks!
--
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/1032999
Title:
projects module: templating/duplicating projects with phases
Status in OpenERP Addons (modules):
New
Bug description:
Hi,
if you create a project with phases in it, then you duplicate it (or
template it and create a new project fm such template) the result is
that you cannot schedule phases for all projects or for any of the two
projects involved in the above process.
OE 6.1.x throws an error such as this one:
Client Traceback (most recent call last):
File "/data/openerp/production/web/6.1/addons/web/common/http.py", line 180, in dispatch
response["result"] = method(controller, self, **self.params)
File "/data/openerp/production/web/6.1/addons/web/controllers/main.py", line 1052, in call_button
action = self.call_common(req, model, method, args, domain_id, context_id)
File "/data/openerp/production/web/6.1/addons/web/controllers/main.py", line 996, in call_common
return self._call_kw(req, model, method, args, {})
File "/data/openerp/production/web/6.1/addons/web/controllers/main.py", line 1010, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/data/openerp/production/web/6.1/addons/web/common/openerplib/main.py", line 250, in proxy
args, kw)
File "/data/openerp/production/web/6.1/addons/web/common/openerplib/main.py", line 117, in proxy
result = self.connector.send(self.service_name, method, *args)
File "/data/openerp/production/web/6.1/addons/web/common/http.py", line 608, in send
raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)
Server Traceback (most recent call last):
File "/data/openerp/production/web/6.1/addons/web/common/http.py", line 593, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/data/openerp/production/server/6.1/openerp/netsvc.py", line 360, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/data/openerp/production/server/6.1/openerp/service/web_services.py", line 586, in dispatch
res = fn(db, uid, *params)
File "/data/openerp/production/server/6.1/openerp/osv/osv.py", line 167, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/data/openerp/production/server/6.1/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/data/openerp/production/server/6.1/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/data/openerp/production/server/6.1/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/data/openerp/production/server/6.1/addons/project_long_term/wizard/project_compute_phases.py", line 39, in check_selection
return self.compute_date(cr, uid, ids, context=context)
File "/data/openerp/production/server/6.1/addons/project_long_term/wizard/project_compute_phases.py", line 55, in compute_date
project_pool.schedule_phases(cr, uid, project_ids, context=context)
File "/data/openerp/production/server/6.1/addons/project_long_term/project_long_term.py", line 233, in schedule_phases
projects_gantt = Task.BalancedProject(local_dict['Project'])
File "/data/openerp/production/server/6.1/addons/resource/faces/task.py", line 3503, in __init__
_AllocationPoject.__init__(self, top_task, scenario, id)
File "/data/openerp/production/server/6.1/addons/resource/faces/task.py", line 3378, in __init__
self._generate()
File "/data/openerp/production/server/6.1/addons/resource/faces/task.py", line 2412, in _generate
task._compile(new_deferred, do_raise)
File "/data/openerp/production/server/6.1/addons/resource/faces/task.py", line 2442, in _compile
self.__compile_function(deferred, do_raise, _MeProxy(self))
File "/data/openerp/production/server/6.1/addons/resource/faces/task.py", line 2517, in __compile_function
self._function()
File "<string>", line 61, in Phase_8
File "/data/openerp/production/server/6.1/addons/resource/faces/task.py", line 485, in __getattr__
new = getattr(self._task, name)
File "/data/openerp/production/server/6.1/addons/resource/faces/task.py", line 2003, in __getattr__
raise exception
AttributeError: 'Phase_10' is not a valid attribute of 'root.Project_15'
Best Regards
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1032999/+subscriptions
References