remove cr.commit, that removed the savepoint [UPT]add test

This commit is contained in:
aheficent
2017-08-10 17:32:46 +02:00
committed by Darshan Patel
parent dc3e2cd9ba
commit c165bcdba9
3 changed files with 78 additions and 3 deletions

View File

@@ -449,7 +449,6 @@ class BiSQLView(models.Model):
# Drop table, created by the ORM
req = "DROP TABLE %s" % (sql_view.view_name)
self.env.cr.execute(req)
self.env.cr.commit() # pylint: disable=invalid-commit
@api.multi
def _create_model_access(self):
@@ -482,7 +481,6 @@ class BiSQLView(models.Model):
AND attnum > 0
ORDER BY attnum;""" % (self.view_name)
self.env.cr.execute(req)
self.env.cr.commit() # pylint: disable=invalid-commit
return self.env.cr.fetchall()
@api.multi
@@ -571,4 +569,4 @@ class BiSQLView(models.Model):
sql_view.view_name)
self.env.cr.execute(req)
sql_view.size = self.env.cr.fetchone()[0]
self.env.cr.commit() # pylint: disable=invalid-commit