2014-12-02 12:55:30 +01: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.
|
2008-06-23 20:55:06 +02:00
|
|
|
|
2012-09-24 22:18:00 +02:00
|
|
|
from trytond.pool import Pool
|
2021-12-11 17:58:42 +01:00
|
|
|
|
|
|
|
|
from . import category, configuration, ir, product, uom
|
2020-04-23 21:44:00 +02:00
|
|
|
from .product import price_digits, round_price
|
2020-03-01 12:33:52 +01:00
|
|
|
from .uom import uom_conversion_digits
|
|
|
|
|
|
2020-04-23 21:44:00 +02:00
|
|
|
__all__ = [price_digits, round_price, uom_conversion_digits]
|
2012-09-24 22:18:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def register():
|
|
|
|
|
Pool.register(
|
2020-05-28 18:22:45 +02:00
|
|
|
ir.Configuration,
|
2020-03-01 12:33:52 +01:00
|
|
|
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,
|
2012-09-24 22:18:00 +02:00
|
|
|
module='product', type_='model')
|