Pyflakes fixes.
This commit is contained in:
parent
a9e77f543d
commit
9b1b916d9d
32
__init__.py
32
__init__.py
|
@ -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')
|
||||
|
|
|
@ -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'
|
||||
|
|
6
stock.py
6
stock.py
|
@ -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',
|
||||
|
|
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue