2021-01-28 11:47:02 +01:00
|
|
|
# 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
|
2021-12-11 17:58:42 +01:00
|
|
|
|
|
|
|
|
from . import carrier, sale
|
2021-01-28 11:47:02 +01:00
|
|
|
|
|
|
|
|
__all__ = ['register']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def register():
|
|
|
|
|
Pool.register(
|
|
|
|
|
carrier.Selection,
|
|
|
|
|
module='carrier_subdivision', type_='model')
|
|
|
|
|
Pool.register(
|
|
|
|
|
sale.Sale,
|
|
|
|
|
module='carrier_subdivision', type_='model',
|
|
|
|
|
depends=['sale_shipment_cost'])
|
2022-09-10 17:35:38 +02:00
|
|
|
Pool.register(
|
|
|
|
|
sale.Carriage,
|
|
|
|
|
module='carrier_subdivision', type_='model',
|
|
|
|
|
depends=['carrier_carriage', 'sale_shipment_cost'])
|