-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path__init__.py
67 lines (65 loc) · 1.76 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
65
66
67
# -*- coding: utf-8 -*-
from trytond.pool import Pool
from wizard import (
TestMagentoConnectionStart, ImportWebsitesStart,
ExportMagentoShipmentStatusStart,
ExportMagentoShipmentStatus, ConfigureMagento, ImportStoresStart,
FailureStart, UpdateMagentoCatalogStart, UpdateMagentoCatalog,
SuccessStart, ExportDataWizardConfigure, ExportDataWizard,
)
from channel import Channel, MagentoTier
from party import Party, MagentoWebsiteParty, Address
from product import (
Category, MagentoInstanceCategory, Product,
ProductPriceTier, ProductSaleChannelListing
)
from country import Country, Subdivision
from currency import Currency
from carrier import SaleChannelCarrier
from sale import (
Sale, StockShipmentOut, SaleLine
)
from bom import BOM
from payment import MagentoPaymentGateway, Payment
def register():
"""
Register classes
"""
Pool.register(
Channel,
MagentoTier,
TestMagentoConnectionStart,
ImportStoresStart,
FailureStart,
SuccessStart,
ImportWebsitesStart,
UpdateMagentoCatalogStart,
ExportMagentoShipmentStatusStart,
Country,
Subdivision,
Party,
MagentoWebsiteParty,
Category,
MagentoInstanceCategory,
Product,
ProductPriceTier,
ExportDataWizardConfigure,
StockShipmentOut,
Address,
Currency,
Sale,
SaleChannelCarrier,
SaleLine,
BOM,
ProductSaleChannelListing,
MagentoPaymentGateway,
Payment,
module='magento', type_='model'
)
Pool.register(
ExportMagentoShipmentStatus,
ExportDataWizard,
ConfigureMagento,
UpdateMagentoCatalog,
module='magento', type_='wizard'
)