From 56a441e56a302dac170b13dd2ec3c3cb790e4b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 7 Feb 2018 00:37:38 +0100 Subject: [PATCH] Register Promotion class in the Pool issue7101 review37961002 --- __init__.py | 11 ++++++----- sale.py | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) 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")