-
Notifications
You must be signed in to change notification settings - Fork 5
/
__init__.py
46 lines (43 loc) · 1.21 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- coding: utf-8 -*-
"""
__init__.py
:copyright: (c) 2015 by Openlabs Technologies & Consulting (P) Limited
:license: BSD, see LICENSE for more details.
"""
from trytond.pool import Pool
from channel import (
SaleChannel, ReadUser, WriteUser, ChannelException, ChannelOrderState
)
from wizard import (
ImportDataWizard, ImportDataWizardStart, ImportDataWizardSuccess,
ImportDataWizardProperties, ImportOrderStatesStart, ImportOrderStates,
ExportPricesStatus, ExportPricesStart, ExportPrices
)
from product import ProductSaleChannelListing, Product
from sale import Sale
from user import User
def register():
Pool.register(
SaleChannel,
ReadUser,
WriteUser,
ChannelException,
ChannelOrderState,
User,
Sale,
ProductSaleChannelListing,
Product,
ImportDataWizardStart,
ImportDataWizardSuccess,
ImportDataWizardProperties,
ImportOrderStatesStart,
ExportPricesStatus,
ExportPricesStart,
module='sale_channel', type_='model'
)
Pool.register(
ImportDataWizard,
ImportOrderStates,
ExportPrices,
module='sale_channel', type_='wizard'
)