trytond-stock_unit_load/__init__.py

68 lines
2.1 KiB
Python
Raw Normal View History

2015-07-03 11:29:35 +02:00
# The COPYRIGHT file at the top level of this repository contains the full
# copyright notices and license terms.
from trytond.pool import Pool
from . import configuration
from .unit_load import (UnitLoad, UnitLoadMove, MoveUnitLoad,
2017-07-28 18:55:49 +02:00
MoveUnitLoadStart, UnitLoadLabel, DropUnitLoad,
DropUnitLoadData, DropUnitLoadFailed, DropUnitLoadFailedProduct,
BatchDropUnitLoad, BatchDropUnitLoadData, BatchDropUnitLoadConfirm,
DropUnitLoadUL, DropUnitLoadEndDate, CaseLabel)
from . import stock
from . import shipment
from .res import User
from . import stock_lot
from . import ir
from .unit_load import cases_digits
__all__ = [cases_digits]
2015-07-03 11:29:35 +02:00
2015-07-03 11:29:35 +02:00
def register():
Pool.register(
configuration.Configuration,
configuration.ConfigurationSequence,
configuration.ConfigurationULProductionType,
configuration.ConfigurationDoUlDrop,
configuration.ProductionConfiguration,
configuration.ConfigurationProposeDropEndDate,
stock.Move,
MoveUnitLoadStart,
UnitLoad,
UnitLoadMove,
DropUnitLoadEndDate,
DropUnitLoadData,
DropUnitLoadUL,
2016-01-07 18:57:46 +01:00
DropUnitLoadFailed,
DropUnitLoadFailedProduct,
shipment.ShipmentOut,
shipment.ShipmentInternal,
shipment.ShipmentOutReturn,
shipment.ShipmentInReturn,
BatchDropUnitLoadData,
BatchDropUnitLoadConfirm,
User,
ir.Configuration,
2015-07-03 11:29:35 +02:00
module='stock_unit_load', type_='model')
Pool.register(
MoveUnitLoad,
2016-01-07 18:57:46 +01:00
DropUnitLoad,
BatchDropUnitLoad,
shipment.Assign,
module='stock_unit_load', type_='wizard')
Pool.register(
UnitLoadLabel,
CaseLabel,
module='stock_unit_load', type_='report')
Pool.register(
stock.Move2,
shipment.ShipmentInternalDone2Cancel,
shipment.ShipmentOutDone2Cancel,
shipment.ShipmentOutReturnDone2Cancel,
module='stock_unit_load', type_='model',
depends=['stock_move_done2cancel'])
Pool.register(
stock_lot.ShipmentOut,
stock_lot.UnitLoad,
module='stock_unit_load', type_='model',
depends=['stock_lot'])