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
|
|
|
|
2025-09-18 16:42:29 +02:00
|
|
|
__all__ = [
|
|
|
|
|
'price_digits', 'round_price', 'uom_conversion_digits',
|
2026-04-02 17:25:24 +02:00
|
|
|
'ProductDeactivatableMixin', 'TemplateDeactivatableMixin',
|
|
|
|
|
'copy_template_filtered', 'copy_product_filtered']
|
2012-09-24 22:18:00 +02:00
|
|
|
|
|
|
|
|
|
2025-09-18 16:42:29 +02:00
|
|
|
def __getattr__(name):
|
|
|
|
|
if name == 'uom_conversion_digits':
|
|
|
|
|
from .uom import uom_conversion_digits
|
|
|
|
|
return uom_conversion_digits
|
|
|
|
|
elif name in {
|
|
|
|
|
'price_digits', 'round_price',
|
2026-04-02 17:25:24 +02:00
|
|
|
'ProductDeactivatableMixin', 'TemplateDeactivatableMixin',
|
|
|
|
|
'copy_template_filtered', 'copy_product_filtered'}:
|
2025-09-18 16:42:29 +02:00
|
|
|
from . import product
|
|
|
|
|
return getattr(product, name)
|
|
|
|
|
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|