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 # The COPYRIGHT file at the top level of this repository contains the full
# copyright notices and license terms. # copyright notices and license terms.
from trytond.pool import Pool from trytond.pool import Pool
from .device import * from . import device
from .sale import * from . import sale
from .statement import * from . import statement
from .user import * from . import user
def register(): def register():
Pool.register( Pool.register(
Journal, statement.Journal,
Statement, statement.Statement,
Line, statement.Line,
SaleDevice, device.SaleDevice,
User, user.User,
SaleDeviceStatementJournal, device.SaleDeviceStatementJournal,
Sale, sale.Sale,
SalePaymentForm, sale.SalePaymentForm,
OpenStatementStart, statement.OpenStatementStart,
OpenStatementDone, statement.OpenStatementDone,
CloseStatementStart, statement.CloseStatementStart,
CloseStatementDone, statement.CloseStatementDone,
module='sale_payment', type_='model') module='sale_payment', type_='model')
Pool.register( Pool.register(
WizardSalePayment, sale.WizardSalePayment,
WizardSaleReconcile, sale.WizardSaleReconcile,
OpenStatement, statement.OpenStatement,
CloseStatement, statement.CloseStatement,
module='sale_payment', type_='wizard') module='sale_payment', type_='wizard')

View File

@ -2,10 +2,8 @@
# The COPYRIGHT file at the top level of this repository contains the full # The COPYRIGHT file at the top level of this repository contains the full
# copyright notices and license terms. # copyright notices and license terms.
from decimal import Decimal from decimal import Decimal
from sql import Cast, Literal
from sql.aggregate import Sum from sql.aggregate import Sum
from sql.conditionals import Coalesce from sql.conditionals import Coalesce
from sql.functions import Substring, Position
from trytond.model import ModelView, fields from trytond.model import ModelView, fields
from trytond.pool import PoolMeta, Pool 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 trytond.wizard import Button, StateTransition, StateView, Wizard
from decimal import Decimal from decimal import Decimal
from trytond.i18n import gettext from trytond.i18n import gettext
from trytond.exceptions import UserError
__all__ = ['Journal', 'Statement', 'Line', 'OpenStatementStart', __all__ = ['Journal', 'Statement', 'Line', 'OpenStatementStart',