flake8 lint
parent
46279078c4
commit
00d43abb9b
|
@ -10,7 +10,7 @@ class BiSQLView(models.Model):
|
||||||
# check the fields we need are defined on self, to stop it going
|
# check the fields we need are defined on self, to stop it going
|
||||||
# early on install / startup - particularly problematic during upgrade
|
# early on install / startup - particularly problematic during upgrade
|
||||||
if 'group_operator' in tools.table_columns(
|
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):
|
model._name.startswith(self._model_prefix):
|
||||||
# Use SQL instead of ORM, as ORM might not be fully initialised -
|
# Use SQL instead of ORM, as ORM might not be fully initialised -
|
||||||
# we have no control over the order that fields are defined!
|
# we have no control over the order that fields are defined!
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
# 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):
|
class BiSQLViewField(models.Model):
|
||||||
|
|
Loading…
Reference in New Issue