[TRUNK] "name 'survey_id' is not defined"

Bug #882775 reported by Maxime Chambreuil (http://www.savoirfairelinux.com)
This bug report is a duplicate of:  Bug #881301: cannot answer a survey. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

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"

Tags: survey
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.