pre-commit

This commit is contained in:
Andrea
2020-10-20 09:12:20 +02:00
parent 9e215198d9
commit 57aee07bc0
9 changed files with 112 additions and 96 deletions

View File

@@ -320,7 +320,11 @@ class BveView(models.Model):
try:
with self.env.cr.savepoint():
self.env.cr.execute(
"CREATE or REPLACE VIEW %s as (%s)", (AsIs(view_name), AsIs(query),)
"CREATE or REPLACE VIEW %s as (%s)",
(
AsIs(view_name),
AsIs(query),
),
)
except Exception as e:
raise UserError(