From f18dcca379062c9960a8be286bfaa5fca734c9c0 Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Tue, 21 Feb 2017 18:42:08 +0100 Subject: [PATCH] Fix pep8 --- sql_export/__openerp__.py | 2 +- sql_export/wizard/wizard_file.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sql_export/__openerp__.py b/sql_export/__openerp__.py index 9048aa751..a42fa2c6c 100644 --- a/sql_export/__openerp__.py +++ b/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', diff --git a/sql_export/wizard/wizard_file.py b/sql_export/wizard/wizard_file.py index b44a3d3a4..b59b39ebb 100644 --- a/sql_export/wizard/wizard_file.py +++ b/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