Closes #14739 (grafted from a15addd781e0cac818b6a7d2a969ee30d68932ba) --HG-- branch : 7.0
33 lines
1.0 KiB
Python
33 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 category, configuration, ir, product, uom
|
|
from .product import (
|
|
copy_product_filtered, copy_template_filtered, price_digits, round_price)
|
|
from .uom import uom_conversion_digits
|
|
|
|
__all__ = [price_digits, round_price, uom_conversion_digits,
|
|
copy_template_filtered, copy_product_filtered]
|
|
|
|
|
|
def register():
|
|
Pool.register(
|
|
ir.Configuration,
|
|
uom.UomCategory,
|
|
uom.Uom,
|
|
category.Category,
|
|
product.Template,
|
|
product.Product,
|
|
product.ProductIdentifier,
|
|
product.ProductListPrice,
|
|
# before ProductCostPrice for migration
|
|
product.ProductCostPriceMethod,
|
|
product.ProductCostPrice,
|
|
product.TemplateCategory,
|
|
product.TemplateCategoryAll,
|
|
configuration.Configuration,
|
|
configuration.ConfigurationDefaultCostPriceMethod,
|
|
module='product', type_='model')
|