← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 862140] Re: when creating a new record of evaluation

 

Hello,

I test this scenario at my end and problem found on addons side. In
hr_evaluation.evaluation form view pass phase_id in context but phase_id
field does not exists in related object. like : <field
name="survey_request_ids" context="{'phase_id': phase_id}" nolabel="1"
colspan="4" widget="one2many">. So i request to addons team to remove
phase_id field in context. gtk-client also give traceback of phase_id.

Thanks,


** Project changed: openerp-web => openerp-addons

** Changed in: openerp-addons
     Assignee: OpenERP R&D Web Team (openerp-dev-web) => (unassigned)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/862140

Title:
  when creating a new record of evaluation

Status in OpenERP Addons (project parking):
  Confirmed

Bug description:
  HR > Evaluation > New(record)

  # when i tried to create new record in Evaluation i got the following
  Traceback and same Traceback while creating o2m record Evaluation >
  Appraisal > interview evaluation

  Client Traceback (most recent call last):
    File "/home/han/rdtool/client-web/trunk/addons/web/common/dispatch.py", line 161, in dispatch
      response["result"] = method(controller, self, **self.params)
    File "/home/han/rdtool/client-web/trunk/addons/web/controllers/main.py", line 935, in load
      return self.fields_view_get(req, model, view_id, view_type, toolbar=toolbar)
    File "/home/han/rdtool/client-web/trunk/addons/web/controllers/main.py", line 791, in fields_view_get
      context = req.session.eval_context(req.context)
    File "/home/han/rdtool/client-web/trunk/addons/web/common/session.py", line 168, in eval_context
      return ccontext.evaluate(ctx)
    File "/home/han/rdtool/client-web/trunk/addons/web/common/nonliterals.py", line 248, in evaluate
      final_context.update(context_to_eval.evaluate(ctx))
    File "/home/han/rdtool/client-web/trunk/addons/web/common/nonliterals.py", line 248, in evaluate
      final_context.update(context_to_eval.evaluate(ctx))
    File "/home/han/rdtool/client-web/trunk/addons/web/common/nonliterals.py", line 173, in evaluate
      return eval(self.get_context_string(), SuperDict(ctx))
    File "<string>", line 1, in <module>
  NameError: name 'phase_id' is not defined

To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-addons/+bug/862140/+subscriptions


References