From 690fcc7b32bcadd68e97f4839bbd33472f33ae78 Mon Sep 17 00:00:00 2001 From: astirpe Date: Thu, 10 Mar 2016 16:53:07 +0100 Subject: [PATCH] Fixed broken handling of registry --- bi_view_editor/models/bve_view.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bi_view_editor/models/bve_view.py b/bi_view_editor/models/bve_view.py index e39573ec..c6790360 100644 --- a/bi_view_editor/models/bve_view.py +++ b/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,