← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 816835] Re: cannot open CRM cases

 

OK, so problem is modules can (and do) add data to the user session
context. As a result, right after installing some modules (especially
the initial setup) OpenERP is debatably useable in that it will
regularly pop up complaints about missing context keys (e.g. the leads
search view uses `section_id`, which is installed by `crm`).

This issue can be "fixed" by logging out and back in, triggering a
reload of the user session data. Not a long-term solution of course.

The GTK client and the old web client "solve" this issue by ignoring it
altogether and returning an empty context (empty dict) when an
evaluation fails (whether it's the evaluation of a domain, a context, or
an arbitrary python expression). I don't think that's a solution either.

A good start would probably be to reload the user session after
installation from the static home page, I'm not sure how to solve for
installation from the "add more features" wizard the "apply scheduled
updates" menu: since they're action, we don't really know they involve
installing new modules.

-- 
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/816835

Title:
  cannot open CRM cases

Status in OpenERP Web:
  Confirmed

Bug description:
  in new web client, try to open lead or opportunity, phone call,....

  cannot open the opportunityies and all other CRM view (lead, call, ...)
  Client Traceback (most recent call last):
    File "/home/aline/openerp/web/openerp-web/openerpweb/openerpweb.py", line 307, in dispatch
      response["result"] = method(controller, self, **self.params)
    File "/home/aline/openerp/web/openerp-web/addons/base/controllers/main.py", line 430, in action
      req.session.eval_context(req.context))
    File "/home/aline/openerp/web/openerp-web/addons/base/controllers/main.py", line 295, in load_actions_from_ir_values
      for id, name, action in actions]
    File "/home/aline/openerp/web/openerp-web/addons/base/controllers/main.py", line 304, in clean_action
      session.evaluation_context()) or {}
    File "<string>", line 1, in <module>
  NameError: name 'section_id' is not defined

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


References