Files
tryton/modules/sale_secondary_unit/__init__.py
T

32 lines
962 B
Python
Raw Normal View History

2019-07-28 14:34:20 +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 account, product, sale, stock
2019-07-28 14:34:20 +02:00
__all__ = ['register']
def register():
Pool.register(
account.InvoiceLine,
product.Template,
product.Product,
sale.Line,
stock.Move,
module='sale_secondary_unit', type_='model')
Pool.register(
product.ProductCustomer,
sale.Line_ProductCustomer,
module='sale_secondary_unit', type_='model',
depends=['sale_product_customer'])
Pool.register(
sale.OpportunityLine,
module='sale_secondary_unit', type_='model',
depends=['sale_opportunity'])
Pool.register(
sale.BlanketAgreementLine,
sale.LineBlanketAgreement,
module='sale_secondary_unit', type_='model',
depends=['sale_blanket_agreement'])