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.)
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.)