Browse Source

[FIX] flake8

pull/351/head
Benoit 9 years ago
committed by Sylvain LE GAL
parent
commit
9c00f2fb58
  1. 2
      sql_export/sql_export.py
  2. 8
      sql_export/wizard/wizard_file.py

2
sql_export/sql_export.py

@ -20,7 +20,7 @@
##############################################################################
import re
from openerp import models, fields, api, _, exceptions
from openerp import models, fields, api
class SqlExport(models.Model):

8
sql_export/wizard/wizard_file.py

@ -97,10 +97,10 @@ class SqlFileWizard(models.TransientModel):
output.close()
finally:
self.env.cr.execute("ROLLBACK TO SAVEPOINT %s" % name)
wiz = self.write(
{
'binary_file': new_output,
'file_name': sql_export.name + '_' + date + '.csv'})
self.write({
'binary_file': new_output,
'file_name': sql_export.name + '_' + date + '.csv'
})
if not sql_export.valid:
sql_export.sudo().valid = True
return {

Loading…
Cancel
Save