Pyflakes fixes.

This commit is contained in:
Albert Cervera i Areny 2021-03-22 00:23:46 +01:00
parent a9e77f543d
commit 9b1b916d9d
4 changed files with 18 additions and 26 deletions

View File

@ -1,26 +1,26 @@
# The COPYRIGHT file at the top level of this repository contains the full
# copyright notices and license terms.
from trytond.pool import Pool
from .product import *
from .stock import *
from . import product
from . import stock
def register():
Pool.register(
Party,
Template,
TemplateOwnerParty,
Product,
ProductByPartyStart,
Location,
Move,
ShipmentOut,
ShipmentExternal,
Period,
PeriodCacheParty,
Inventory,
InventoryLine,
stock.Party,
product.Template,
product.TemplateOwnerParty,
product.Product,
product.ProductByPartyStart,
stock.Location,
stock.Move,
stock.ShipmentOut,
stock.ShipmentExternal,
stock.Period,
stock.PeriodCacheParty,
stock.Inventory,
stock.InventoryLine,
module='stock_external_party', type_='model')
Pool.register(
ProductByParty,
product.ProductByParty,
module='stock_external_party', type_='wizard')

View File

@ -8,10 +8,6 @@ from trytond.pyson import Eval, PYSONEncoder
from trytond.transaction import Transaction
from trytond.wizard import Wizard, StateView, StateAction, Button
__all__ = ['Template', 'TemplateOwnerParty',
'Product', 'ProductByPartyStart', 'ProductByParty',
]
class Template(metaclass=PoolMeta):
__name__ = 'product.template'

View File

@ -9,12 +9,6 @@ from trytond.i18n import gettext
from trytond.exceptions import UserError
__all__ = ['Party', 'Location',
'Move', 'ShipmentOut', 'ShipmentExternal',
'Period', 'PeriodCacheParty',
'Inventory', 'InventoryLine']
class Party(StockMixin, metaclass=PoolMeta):
__name__ = 'party.party'
quantity = fields.Function(fields.Float('Quantity'), 'get_quantity',

View File

@ -1,3 +1,5 @@
# The COPYRIGHT file at the top level of this repository contains the full
# copyright notices and license terms.
from .test_stock_external_party import suite
__all__ = ['suite']