Register Promotion class in the Pool
issue7101 review37961002
This commit is contained in:
1 parent
6137c6790c
commit
56a441e56a
2 files changed
+8
-6
No files matched your search
+6
-5
@@ -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')
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in new issue
Block a user