openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #00203
[Bug 882775] [NEW] [TRUNK] "name 'survey_id' is not defined"
Public bug reported:
Using server, web and addons from trunk, I installed hr_evaluation
module with demo data.
I created an evaluation using the existing evaluation plan.
When I want to answer the survey related to the first stage of the
evaluation, I get an error message:
Client Traceback (most recent call last):
File "/home/max/openerp/web/trunk/addons/web/common/http.py", line 154, in dispatch
response["result"] = method(controller, self, **self.params)
File "/home/max/openerp/web/trunk/addons/web/controllers/main.py", line 1083, in load
context = req.session.eval_context(req.context)
File "/home/max/openerp/web/trunk/addons/web/common/session.py", line 158, in eval_context
return ccontext.evaluate(ctx)
File "/home/max/openerp/web/trunk/addons/web/common/nonliterals.py", line 267, in evaluate
final_context.update(context_to_eval.evaluate(ctx))
File "/home/max/openerp/web/trunk/addons/web/common/nonliterals.py", line 267, in evaluate
final_context.update(context_to_eval.evaluate(ctx))
File "/home/max/openerp/web/trunk/addons/web/common/nonliterals.py", line 187, in evaluate
raise ValueError('Error during evaluation of this context: "%s", message: "%s"' % (self.get_context_string(), e.message))
ValueError: Error during evaluation of this context: "{'survey_id': survey_id, 'response_id': [response], 'response_no':0, 'active' : response, 'request' : True, 'object' : 'hr.evaluation.interview', 'cur_id' : active_id}", message: "name 'survey_id' is not defined"
I tried opening the survey directly from the Tools submenu :
Client Traceback (most recent call last):
File "/home/max/openerp/web/trunk/addons/web/common/http.py", line 154, in dispatch
response["result"] = method(controller, self, **self.params)
File "/home/max/openerp/web/trunk/addons/web/controllers/main.py", line 1083, in load
context = req.session.eval_context(req.context)
File "/home/max/openerp/web/trunk/addons/web/common/session.py", line 158, in eval_context
return ccontext.evaluate(ctx)
File "/home/max/openerp/web/trunk/addons/web/common/nonliterals.py", line 267, in evaluate
final_context.update(context_to_eval.evaluate(ctx))
File "/home/max/openerp/web/trunk/addons/web/common/nonliterals.py", line 267, in evaluate
final_context.update(context_to_eval.evaluate(ctx))
File "/home/max/openerp/web/trunk/addons/web/common/nonliterals.py", line 187, in evaluate
raise ValueError('Error during evaluation of this context: "%s", message: "%s"' % (self.get_context_string(), e.message))
ValueError: Error during evaluation of this context: "{'active':True,'survey_id': active_id}", message: "name 'active_id' is not defined"
** Affects: openobject-addons
Importance: Undecided
Status: New
** Tags: survey
** Tags added: survey
--
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/882775
Title:
[TRUNK] "name 'survey_id' is not defined"
Status in OpenERP Addons (modules):
New
Bug description:
Using server, web and addons from trunk, I installed hr_evaluation
module with demo data.
I created an evaluation using the existing evaluation plan.
When I want to answer the survey related to the first stage of the
evaluation, I get an error message:
Client Traceback (most recent call last):
File "/home/max/openerp/web/trunk/addons/web/common/http.py", line 154, in dispatch
response["result"] = method(controller, self, **self.params)
File "/home/max/openerp/web/trunk/addons/web/controllers/main.py", line 1083, in load
context = req.session.eval_context(req.context)
File "/home/max/openerp/web/trunk/addons/web/common/session.py", line 158, in eval_context
return ccontext.evaluate(ctx)
File "/home/max/openerp/web/trunk/addons/web/common/nonliterals.py", line 267, in evaluate
final_context.update(context_to_eval.evaluate(ctx))
File "/home/max/openerp/web/trunk/addons/web/common/nonliterals.py", line 267, in evaluate
final_context.update(context_to_eval.evaluate(ctx))
File "/home/max/openerp/web/trunk/addons/web/common/nonliterals.py", line 187, in evaluate
raise ValueError('Error during evaluation of this context: "%s", message: "%s"' % (self.get_context_string(), e.message))
ValueError: Error during evaluation of this context: "{'survey_id': survey_id, 'response_id': [response], 'response_no':0, 'active' : response, 'request' : True, 'object' : 'hr.evaluation.interview', 'cur_id' : active_id}", message: "name 'survey_id' is not defined"
I tried opening the survey directly from the Tools submenu :
Client Traceback (most recent call last):
File "/home/max/openerp/web/trunk/addons/web/common/http.py", line 154, in dispatch
response["result"] = method(controller, self, **self.params)
File "/home/max/openerp/web/trunk/addons/web/controllers/main.py", line 1083, in load
context = req.session.eval_context(req.context)
File "/home/max/openerp/web/trunk/addons/web/common/session.py", line 158, in eval_context
return ccontext.evaluate(ctx)
File "/home/max/openerp/web/trunk/addons/web/common/nonliterals.py", line 267, in evaluate
final_context.update(context_to_eval.evaluate(ctx))
File "/home/max/openerp/web/trunk/addons/web/common/nonliterals.py", line 267, in evaluate
final_context.update(context_to_eval.evaluate(ctx))
File "/home/max/openerp/web/trunk/addons/web/common/nonliterals.py", line 187, in evaluate
raise ValueError('Error during evaluation of this context: "%s", message: "%s"' % (self.get_context_string(), e.message))
ValueError: Error during evaluation of this context: "{'active':True,'survey_id': active_id}", message: "name 'active_id' is not defined"
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/882775/+subscriptions
Follow ups
References