Files
tryton/__init__.py
T
Cédric Krier d11dfd7e70 Delete stock moves from components when applying amendment
issue11355
review386301002
(grafted from ffeafe1cbe9fa2dce255157936cfae676d07ebe7)

--HG--
branch : 6.0
2022-04-06 18:52:08 +02:00

59 lines
1.8 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 product
from . import sale
from . import purchase
from . import stock
from . import account
__all__ = ['register']
def register():
Pool.register(
product.Template,
product.Product,
product.Component,
module='product_kit', type_='model')
Pool.register(
account.Invoice,
account.InvoiceLine,
module='product_kit', type_='model', depends=['account_invoice_stock'])
Pool.register(
stock.Move,
module='product_kit', type_='model', depends=['stock'])
Pool.register(
sale.Sale,
sale.Line,
sale.LineComponent,
sale.LineComponentIgnoredMove,
sale.LineComponentRecreatedMove,
stock.MoveSale,
account.InvoiceLineSale,
module='product_kit', type_='model', depends=['sale'])
Pool.register(
sale.HandleShipmentException,
module='product_kit', type_='wizard', depends=['sale'])
Pool.register(
sale.Amendment,
sale.AmendmentLine,
module='product_kit', type_='model', depends=['sale_amendment'])
Pool.register(
purchase.Purchase,
purchase.Line,
purchase.LineComponent,
purchase.LineComponentIgnoredMove,
purchase.LineComponentRecreatedMove,
stock.MovePurchase,
account.InvoiceLinePurchase,
module='product_kit', type_='model', depends=['purchase'])
Pool.register(
purchase.HandleShipmentException,
module='product_kit', type_='wizard', depends=['purchase'])
Pool.register(
purchase.Amendment,
purchase.AmendmentLine,
module='product_kit', type_='model', depends=['purchase_amendment'])