Files
tryton/modules/production/__init__.py
T
Cédric Krier ee5cb27962 Create lot for output product when needed
When the output product has a sequence and a lot is required, we create a new
lot to set on the output move.

Closes #11923
2023-01-24 10:53:23 +01:00

36 lines
1.0 KiB
Python

# 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
from . import bom, configuration, ir, product, production, stock
def register():
Pool.register(
configuration.Configuration,
configuration.ConfigurationProductionSequence,
bom.BOM,
bom.BOMInput,
bom.BOMOutput,
bom.BOMTree,
bom.OpenBOMTreeStart,
bom.OpenBOMTreeTree,
production.Production,
product.Template,
product.Product,
product.ProductBom,
product.ProductionLeadTime,
stock.Location,
stock.Move,
stock.ProductQuantitiesByWarehouseMove,
ir.Cron,
module='production', type_='model')
Pool.register(
stock.LotTrace,
production.Production_Lot,
module='production', type_='model', depends=['stock_lot'])
Pool.register(
bom.OpenBOMTree,
module='production', type_='wizard')