mirror of
https://github.com/NaN-tic/trytond-agronomics.git
synced 2023-12-14 05:33:01 +01:00
Pyflakes
This commit is contained in:
parent
7411c82a1e
commit
3dcbfe618d
6
plot.py
6
plot.py
|
@ -2,9 +2,7 @@
|
||||||
# this repository contains the full copyright notices and license terms.
|
# this repository contains the full copyright notices and license terms.
|
||||||
from trytond.model import fields, ModelSQL, ModelView
|
from trytond.model import fields, ModelSQL, ModelView
|
||||||
from trytond.pool import Pool
|
from trytond.pool import Pool
|
||||||
from trytond.i18n import gettext
|
|
||||||
from trytond.exceptions import UserError
|
|
||||||
from trytond.transaction import Transaction
|
|
||||||
|
|
||||||
class Enclosure(ModelSQL, ModelView):
|
class Enclosure(ModelSQL, ModelView):
|
||||||
"Enclosure"
|
"Enclosure"
|
||||||
|
@ -165,9 +163,7 @@ class Beneficiaries(ModelSQL, ModelView):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def __register__(cls, module_name):
|
def __register__(cls, module_name):
|
||||||
cursor = Transaction().connection.cursor()
|
|
||||||
table = cls.__table_handler__(module_name)
|
table = cls.__table_handler__(module_name)
|
||||||
sql_table = cls.__table__()
|
|
||||||
|
|
||||||
# Migration from #047773
|
# Migration from #047773
|
||||||
if table.column_exist('percent'):
|
if table.column_exist('percent'):
|
||||||
|
|
|
@ -6,8 +6,6 @@ from trytond.pool import Pool
|
||||||
from trytond.i18n import gettext
|
from trytond.i18n import gettext
|
||||||
from trytond.exceptions import UserError
|
from trytond.exceptions import UserError
|
||||||
from trytond.transaction import Transaction
|
from trytond.transaction import Transaction
|
||||||
from trytond.wizard import (Wizard, StateView, StateTransition, StateAction,
|
|
||||||
Button)
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
class WeighingCenter(ModelSQL, ModelView):
|
class WeighingCenter(ModelSQL, ModelView):
|
||||||
|
|
Loading…
Reference in a new issue