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. 6
      sql_export/wizard/wizard_file.py

2
sql_export/sql_export.py

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

6
sql_export/wizard/wizard_file.py

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

Loading…
Cancel
Save