Comment 3 for bug 816835

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

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.