From dbffddd6ff654686762be4843c9b7d88164f536f Mon Sep 17 00:00:00 2001 From: Albert Cervera i Areny Date: Sat, 14 Dec 2019 23:08:54 +0100 Subject: [PATCH] pyflakes fixes --- __init__.py | 40 ++++++++++++++++++++-------------------- sale.py | 2 -- statement.py | 1 - 3 files changed, 20 insertions(+), 23 deletions(-) diff --git a/__init__.py b/__init__.py index 34788f5..a5ac9e3 100644 --- a/__init__.py +++ b/__init__.py @@ -2,30 +2,30 @@ # The COPYRIGHT file at the top level of this repository contains the full # copyright notices and license terms. from trytond.pool import Pool -from .device import * -from .sale import * -from .statement import * -from .user import * +from . import device +from . import sale +from . import statement +from . import user def register(): Pool.register( - Journal, - Statement, - Line, - SaleDevice, - User, - SaleDeviceStatementJournal, - Sale, - SalePaymentForm, - OpenStatementStart, - OpenStatementDone, - CloseStatementStart, - CloseStatementDone, + statement.Journal, + statement.Statement, + statement.Line, + device.SaleDevice, + user.User, + device.SaleDeviceStatementJournal, + sale.Sale, + sale.SalePaymentForm, + statement.OpenStatementStart, + statement.OpenStatementDone, + statement.CloseStatementStart, + statement.CloseStatementDone, module='sale_payment', type_='model') Pool.register( - WizardSalePayment, - WizardSaleReconcile, - OpenStatement, - CloseStatement, + sale.WizardSalePayment, + sale.WizardSaleReconcile, + statement.OpenStatement, + statement.CloseStatement, module='sale_payment', type_='wizard') diff --git a/sale.py b/sale.py index b34bf76..674494e 100644 --- a/sale.py +++ b/sale.py @@ -2,10 +2,8 @@ # The COPYRIGHT file at the top level of this repository contains the full # copyright notices and license terms. from decimal import Decimal -from sql import Cast, Literal from sql.aggregate import Sum from sql.conditionals import Coalesce -from sql.functions import Substring, Position from trytond.model import ModelView, fields from trytond.pool import PoolMeta, Pool diff --git a/statement.py b/statement.py index 30510ad..2ede8a5 100644 --- a/statement.py +++ b/statement.py @@ -7,7 +7,6 @@ from trytond.transaction import Transaction from trytond.wizard import Button, StateTransition, StateView, Wizard from decimal import Decimal from trytond.i18n import gettext -from trytond.exceptions import UserError __all__ = ['Journal', 'Statement', 'Line', 'OpenStatementStart',