We move the shipping code in mixin's such that it can be applied on other shipments. We define properties to abstract the information needed by the create shipping wizards. Such that they can be execute on any shipment. issue9850 review324521002
21 lines
573 B
Python
21 lines
573 B
Python
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
# this repository contains the full copyright notices and license terms.
|
|
|
|
from trytond.pool import Pool
|
|
|
|
from . import carrier
|
|
from . import stock
|
|
|
|
|
|
def register():
|
|
Pool.register(
|
|
carrier.CredentialDPD,
|
|
carrier.Carrier,
|
|
stock.ShipmentOut,
|
|
stock.ShipmentInReturn,
|
|
module='stock_package_shipping_dpd', type_='model')
|
|
Pool.register(
|
|
stock.CreateShipping,
|
|
stock.CreateDPDShipping,
|
|
module='stock_package_shipping_dpd', type_='wizard')
|