-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path__init__.py
64 lines (61 loc) · 1.72 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# -*- coding: utf-8 -*-
"""
__init__.py
"""
from trytond.pool import Pool
from channel import (
SaleChannel, ReadUser, WriteUser, ChannelException, ChannelOrderState,
TaxMapping, ChannelPaymentGateway
)
from wizard import (
ImportDataWizard, ImportDataWizardStart, ImportDataWizardSuccess,
ExportDataWizard, ExportDataWizardStart, ExportDataWizardSuccess,
ImportDataWizardProperties, ImportOrderStatesStart, ImportOrderStates,
ExportPricesStatus, ExportPricesStart, ExportPrices
)
from product import (
ProductSaleChannelListing, Product, AddProductListing,
AddProductListingStart, Template, TemplateSaleChannelListing
)
from party import Party, PartySaleChannelListing
from carrier import SaleChannelCarrier
from sale import Sale, SaleLine
from user import User
def register():
Pool.register(
SaleChannel,
TaxMapping,
ReadUser,
WriteUser,
ChannelException,
ChannelOrderState,
SaleChannelCarrier,
Party,
PartySaleChannelListing,
User,
Sale,
SaleLine,
ProductSaleChannelListing,
Product,
Template,
TemplateSaleChannelListing,
ImportDataWizardStart,
ImportDataWizardSuccess,
ImportDataWizardProperties,
ExportDataWizardStart,
ExportDataWizardSuccess,
ImportOrderStatesStart,
ExportPricesStatus,
ExportPricesStart,
AddProductListingStart,
ChannelPaymentGateway,
module='sale_channel', type_='model'
)
Pool.register(
AddProductListing,
ImportDataWizard,
ExportDataWizard,
ImportOrderStates,
ExportPrices,
module='sale_channel', type_='wizard'
)