Comment 1 for bug 1338405

Revision history for this message
Georges Racinet (gracinet) wrote :

The call to the context manager that initializes the environments weakset class-level attr is indeed missing.
From registry.py:

            with openerp.api.Environment.manage():
                registry = Registry(db_name)

That should be an easy fix, although care must be taken (version check, check that "local" stands for "thread local" etc.)