Register Promotion class in the Pool

issue7101
review37961002
This commit is contained in:
Cédric Krier committed 2018-02-07 00:37:38 +01:00
1 parent 6137c6790c
commit 56a441e56a
2 files changed
+8 -6

No files matched your search

+6 -5
View File
@@ -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')
+2 -1
View File
@@ -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")