diff --git a/__init__.py b/__init__.py index 50ec9602db..b9749a1805 100644 --- a/__init__.py +++ b/__init__.py @@ -2,15 +2,16 @@ # this repository contains the full copyright notices and license terms. from trytond.pool import Pool -from .sale import * +from . import sale from .stock import * def register(): Pool.register( - Configuration, - ConfigurationSaleMethod, - Sale, - SaleLine, + sale.Configuration, + sale.ConfigurationSaleMethod, + sale.Sale, + sale.SaleLine, + sale.Promotion, ShipmentOut, module='sale_shipment_cost', type_='model') diff --git a/sale.py b/sale.py index bf97ced25a..ed7cd30ec8 100644 --- a/sale.py +++ b/sale.py @@ -10,7 +10,8 @@ from trytond.pool import Pool, PoolMeta from trytond.modules.product import price_digits -__all__ = ['Configuration', 'ConfigurationSaleMethod', 'Sale', 'SaleLine'] +__all__ = ['Configuration', 'ConfigurationSaleMethod', 'Sale', 'SaleLine', + 'Promotion'] sale_shipment_cost_method = fields.Selection( 'get_sale_shipment_cost_methods', "Sale Shipment Cost Method")