From 00d43abb9b8a95075f30fa1c07848daaa7523800 Mon Sep 17 00:00:00 2001 From: Richard deMeester Date: Thu, 28 Nov 2019 17:09:40 +1100 Subject: [PATCH] flake8 lint --- bi_sql_editor_aggregate/models/bi_sql_view.py | 2 +- bi_sql_editor_aggregate/models/bi_sql_view_field.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bi_sql_editor_aggregate/models/bi_sql_view.py b/bi_sql_editor_aggregate/models/bi_sql_view.py index ceab2a34..29d9aeec 100644 --- a/bi_sql_editor_aggregate/models/bi_sql_view.py +++ b/bi_sql_editor_aggregate/models/bi_sql_view.py @@ -10,7 +10,7 @@ class BiSQLView(models.Model): # check the fields we need are defined on self, to stop it going # early on install / startup - particularly problematic during upgrade if 'group_operator' in tools.table_columns( - self.env.cr, 'bi_sql_view_field') and\ + self.env.cr, 'bi_sql_view_field') and\ model._name.startswith(self._model_prefix): # Use SQL instead of ORM, as ORM might not be fully initialised - # we have no control over the order that fields are defined! diff --git a/bi_sql_editor_aggregate/models/bi_sql_view_field.py b/bi_sql_editor_aggregate/models/bi_sql_view_field.py index 00efc454..60bdfcff 100644 --- a/bi_sql_editor_aggregate/models/bi_sql_view_field.py +++ b/bi_sql_editor_aggregate/models/bi_sql_view_field.py @@ -1,6 +1,6 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import _, api, fields, models +from odoo import fields, models class BiSQLViewField(models.Model):