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:43 +01:00
|
|
|
|
|
|
|
|
from . import account, product, purchase, stock
|
2019-07-28 14:34:20 +02:00
|
|
|
|
|
|
|
|
__all__ = ['register']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def register():
|
|
|
|
|
Pool.register(
|
|
|
|
|
account.InvoiceLine,
|
|
|
|
|
product.Template,
|
|
|
|
|
product.Product,
|
|
|
|
|
product.ProductSupplier,
|
|
|
|
|
purchase.Line,
|
|
|
|
|
stock.Move,
|
|
|
|
|
module='purchase_secondary_unit', type_='model')
|
|
|
|
|
Pool.register(
|
|
|
|
|
purchase.RequisitionLine,
|
|
|
|
|
module='purchase_secondary_unit', type_='model',
|
|
|
|
|
depends=['purchase_requisition'])
|
2022-10-10 18:35:01 +02:00
|
|
|
Pool.register(
|
|
|
|
|
purchase.BlanketAgreementLine,
|
|
|
|
|
purchase.LineBlanketAgreement,
|
|
|
|
|
module='purchase_secondary_unit', type_='model',
|
|
|
|
|
depends=['purchase_blanket_agreement'])
|