|
@ -256,14 +256,10 @@ class BveView(models.Model): |
|
|
[x for x in self.name.lower() |
|
|
[x for x in self.name.lower() |
|
|
if x.isalnum()]).replace("_", ".").replace(" ", ".") |
|
|
if x.isalnum()]).replace("_", ".").replace(" ", ".") |
|
|
|
|
|
|
|
|
try: |
|
|
|
|
|
with self.env.cr.savepoint(): |
|
|
|
|
|
_build_query() |
|
|
_build_query() |
|
|
obj = _build_object() |
|
|
obj = _build_object() |
|
|
_build_access_rules(obj) |
|
|
_build_access_rules(obj) |
|
|
except Exception, e: |
|
|
|
|
|
raise UserError( |
|
|
|
|
|
_('Generic error. Unable to create the view! %s') % e) |
|
|
|
|
|
|
|
|
self.env.cr.commit() |
|
|
|
|
|
|
|
|
self.env.registry = RegistryManager.new(self.env.cr.dbname) |
|
|
self.env.registry = RegistryManager.new(self.env.cr.dbname) |
|
|
RegistryManager.signal_registry_change(self.env.cr.dbname) |
|
|
RegistryManager.signal_registry_change(self.env.cr.dbname) |
|
|