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
551 B
Python
21 lines
551 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 stock
|
|
from . import carrier
|
|
|
|
|
|
def register():
|
|
Pool.register(
|
|
stock.PackageType,
|
|
stock.Package,
|
|
stock.ShipmentOut,
|
|
stock.ShipmentInReturn,
|
|
carrier.Carrier,
|
|
module='stock_package_shipping', type_='model')
|
|
Pool.register(
|
|
stock.CreateShipping,
|
|
module='stock_package_shipping', type_='wizard')
|