Browse Source

Fix pep8

pull/351/head
Florian da Costa 8 years ago
committed by Sylvain LE GAL
parent
commit
f18dcca379
  1. 2
      sql_export/__openerp__.py
  2. 3
      sql_export/wizard/wizard_file.py

2
sql_export/__openerp__.py

@ -20,7 +20,7 @@
##############################################################################
{'name': 'SQL Export',
'version': '0.1',
'version': '8.0.0.0.1',
'author': 'Akretion,Odoo Community Association (OCA)',
'website': 'http://www.akretion.com',
'license': 'AGPL-3',

3
sql_export/wizard/wizard_file.py

@ -85,7 +85,8 @@ class SqlFileWizard(models.TransientModel):
variable_dict['company_id'] = self.env.user.company_id.id
if "%(user_id)s" in sql_export.query:
variable_dict['user_id'] = self._uid
format_query = self.env.cr.mogrify(sql_export.query, variable_dict).decode('utf-8')
format_query = self.env.cr.mogrify(sql_export.query, variable_dict).\
decode('utf-8')
query = "COPY (" + format_query + ") TO STDOUT WITH " + \
sql_export.copy_options
name = 'export_query_%s' % uuid.uuid1().hex

Loading…
Cancel
Save