new Odoo v8 API is breaking interactive session
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP buildout recipe |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Hello,
until Odoo master commit d78192c489d3be6
Now on commit cbe2dbb672a6c55
>>> session.
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/
return old_api(self, *args, **kwargs)
File "/home/
return self._browse(
File "/home/
env, envs = None, cls._local.
File "/home/
raise AttributeError(
AttributeError: environments
Hope this helps.
Related branches
Changed in anybox.recipe.openerp: | |
status: | Fix Committed → Fix Released |
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.)