Browse Source

Fixed broken handling of registry

pull/47/head
astirpe 9 years ago
parent
commit
690fcc7b32
  1. 3
      bi_view_editor/models/bve_view.py

3
bi_view_editor/models/bve_view.py

@ -255,9 +255,10 @@ class BveView(models.Model):
_build_access_rules(obj)
self.env.cr.commit()
api.Environment.reset()
from openerp.modules.registry import RegistryManager
self.env.registry = RegistryManager.new(self.env.cr.dbname)
RegistryManager.signal_registry_change(self.env.cr.dbname)
self.pool = self.env.registry
view_id = self.pool.get('ir.ui.view').create(
self.env.cr, SUPERUSER_ID,

Loading…
Cancel
Save