2018-07-27 17:09:12 +02:00
|
|
|
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
|
|
|
# this repository contains the full copyright notices and license terms.
|
|
|
|
|
|
|
|
|
|
from trytond.pool import Pool
|
|
|
|
|
|
2021-12-11 17:58:44 +01:00
|
|
|
from . import product, stock
|
2021-02-03 21:19:06 +01:00
|
|
|
from .stock import LotUnitMixin
|
|
|
|
|
|
|
|
|
|
__all__ = ['LotUnitMixin', 'register']
|
2018-07-27 17:09:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def register():
|
|
|
|
|
Pool.register(
|
|
|
|
|
product.Template,
|
|
|
|
|
product.Product,
|
|
|
|
|
stock.Lot,
|
2021-02-03 21:19:06 +01:00
|
|
|
stock.MoveAddLotsStartLot,
|
2018-07-27 17:09:12 +02:00
|
|
|
stock.Move,
|
|
|
|
|
stock.Inventory,
|
|
|
|
|
stock.ShipmentIn,
|
|
|
|
|
stock.ShipmentInReturn,
|
|
|
|
|
stock.ShipmentOut,
|
|
|
|
|
stock.ShipmentOutReturn,
|
|
|
|
|
module='stock_lot_unit', type_='model')
|
|
|
|
|
Pool.register(
|
|
|
|
|
stock.Production,
|
|
|
|
|
module='stock_lot_unit', type_='model',
|
|
|
|
|
depends=['production'])
|
|
|
|
|
Pool.register(
|
|
|
|
|
stock.InventoryCount,
|
|
|
|
|
module='stock_lot_unit', type_='wizard')
|