-
Notifications
You must be signed in to change notification settings - Fork 18
/
__init__.py
61 lines (57 loc) · 1.54 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
# -*- coding: utf-8 -*-
"""
__init__.py
"""
from trytond.pool import Pool
from carrier import Carrier, Service, CarrierService, BoxType, CarrierBoxType
from party import (
Address, AddressValidationMsg, AddressValidationWizard,
AddressValidationSuggestionView
)
from shipment import (
ShipmentOut, GenerateShippingLabelMessage, GenerateShippingLabel,
ShippingCarrierSelector, SelectShippingRate
)
from stock import StockMove
from sale import Sale, SaleLine, ReturnSale, ApplyShippingStart, \
ApplyShippingSelectRate, ApplyShipping
from configuration import PartyConfiguration
from log import CarrierLog
from manifest import ShippingManifest
from location import Location
from package import Package
from tracking import ShipmentTracking
def register():
Pool.register(
PartyConfiguration,
Carrier,
Service,
CarrierService,
BoxType,
CarrierBoxType,
CarrierLog,
Address,
ShipmentTracking,
ShippingManifest,
ShipmentOut,
StockMove,
Package,
Sale,
SaleLine,
ApplyShippingStart,
ApplyShippingSelectRate,
GenerateShippingLabelMessage,
SelectShippingRate,
ShippingCarrierSelector,
AddressValidationMsg,
AddressValidationSuggestionView,
Location,
module='shipping', type_='model'
)
Pool.register(
GenerateShippingLabel,
AddressValidationWizard,
ReturnSale,
ApplyShipping,
module='shipping', type_='wizard'
)