pyflakes fixes

This commit is contained in:
Albert Cervera i Areny 2019-12-14 23:08:54 +01:00
parent ede07e7b4b
commit dbffddd6ff
3 changed files with 20 additions and 23 deletions

View File

@ -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')

View File

@ -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

View File

@ -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',